From: Mihnea Dobrescu-Balaur Date: Sun, 10 Mar 2013 12:22:48 +0000 (+0200) Subject: gpu: don't cast kzalloc() return value X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5c67eeb6bf7eef062c835a64b501f3c926712fa5;p=openwrt%2Fstaging%2Fblogic.git gpu: don't cast kzalloc() return value Signed-off-by: Mihnea Dobrescu-Balaur Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 63dcb760b004..38b8511ca598 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;