summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-03-12 13:07:37 +0800
committerJiri Kosina <jkosina@suse.cz>2013-03-18 14:15:58 +0100
commitc03117574726750ea01508b7b89fe058eabe2251 (patch)
tree5784dd9e88158c8d9d99ffc2cb839f581e189b81 /drivers
parent194c8767cef585708645186a928089b1adf77f52 (diff)
downloadlinux-stable-c03117574726750ea01508b7b89fe058eabe2251.tar.gz
linux-stable-c03117574726750ea01508b7b89fe058eabe2251.tar.bz2
linux-stable-c03117574726750ea01508b7b89fe058eabe2251.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/intel_sdvo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index d07a8cdf998e..78413ec623c9 100644
--- 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;