gpu: don't cast kzalloc() return value
Signed-off-by: Mihnea Dobrescu-Balaur <mihneadb@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Родитель
35aad75fd3
Коммит
5c67eeb6bf
|
@ -451,7 +451,7 @@ static bool intel_sdvo_write_cmd(struct intel_sdvo *intel_sdvo, u8 cmd,
|
|||
int i, ret = true;
|
||||
|
||||
/* Would be simpler to allocate both in one go ? */
|
||||
buf = (u8 *)kzalloc(args_len * 2 + 2, GFP_KERNEL);
|
||||
buf = kzalloc(args_len * 2 + 2, GFP_KERNEL);
|
||||
if (!buf)
|
||||
return false;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче