]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpu: don't cast kzalloc() return value
authorMihnea Dobrescu-Balaur <mihneadb@gmail.com>
Sun, 10 Mar 2013 12:22:48 +0000 (14:22 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Mar 2013 22:51:54 +0000 (23:51 +0100)
Signed-off-by: Mihnea Dobrescu-Balaur <mihneadb@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sdvo.c

index 63dcb760b0041b785b29ba4340e14d4f5bd9230d..38b8511ca5984982fd83305165cfe80f4eb1ca20 100644 (file)
@@ -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;