projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
194c876
)
driver: gpu: drm: i915: remove cast for kzalloc return value
author
Zhang Yanfei
<zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 05:07:37 +0000
(13:07 +0800)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 18 Mar 2013 13:15:58 +0000
(14:15 +0100)
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>
drivers/gpu/drm/i915/intel_sdvo.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/intel_sdvo.c
b/drivers/gpu/drm/i915/intel_sdvo.c
index d07a8cdf998ec4b1eadda9aa9906a8053f25b1ee..78413ec623c93379d9f2f1f119aebbbcb1c6102c 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_sdvo.c
+++ b/
drivers/gpu/drm/i915/intel_sdvo.c
@@
-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;