mirror of https://gitee.com/openkylin/linux.git
driver: gpu: drm: i915: remove cast for kzalloc return value
remove cast for kzalloc return value. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: David Airlie <airlied@linux.ie> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
194c8767ce
commit
c031175747
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue