aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ced1401
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2012-10-27 11:29:03 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-30 11:06:59 -0700
commite6c5abf2542f1a91d31ae536707c00cf0ceaf376 (patch)
tree7d3457325477cddc14f760fa3ebc9ff9a8433ffe /drivers/staging/ced1401
parentstaging: drm/omap: only advertise rotation prop if supported (diff)
downloadlinux-dev-e6c5abf2542f1a91d31ae536707c00cf0ceaf376.tar.xz
linux-dev-e6c5abf2542f1a91d31ae536707c00cf0ceaf376.zip
staging: ced1401: remove useless value cast on kmalloc()
Casting value returned by k[cmz]alloc to (struct page * *) is useless. Generated by: scripts/coccinelle/api/alloc/drop_kmalloc_cast.cocci Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ced1401')
-rw-r--r--drivers/staging/ced1401/ced_ioc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c
index 0adba75be8b7..efe6aecbf9b7 100644
--- a/drivers/staging/ced1401/ced_ioc.c
+++ b/drivers/staging/ced1401/ced_ioc.c
@@ -697,8 +697,7 @@ static int SetArea(DEVICE_EXTENSION * pdx, int nArea, char __user * puBuf,
return -EFAULT; // ...then we are done
// Now allocate space to hold the page pointer and virtual address pointer tables
- pPages =
- (struct page **)kmalloc(len * sizeof(struct page *), GFP_KERNEL);
+ pPages = kmalloc(len * sizeof(struct page *), GFP_KERNEL);
if (!pPages) {
iReturn = U14ERR_NOMEMORY;
goto error;