diff options
author | Jesper Juhl <jj@chaosbits.net> | 2010-11-08 18:08:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:47 -0500 |
commit | 9a9dcb4a19c29ec01e7d249e3dae2d589af86480 (patch) | |
tree | 55b86d930f87bd704947b272773eef6879abca06 /drivers/media/video/cx231xx | |
parent | 9c0147b6941e082f52dcbb9688d0e6e5f359744f (diff) |
[media] cx231xx-417: Remove unnecessary casts of void ptr returning alloc function return values
Hi,
The [vk][cmz]alloc(_node) family of functions return void pointers which
it's completely unnecessary/pointless to cast to other pointer types since
that happens implicitly.
This patch removes such casts from drivers/media/
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx231xx')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-417.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-417.c b/drivers/media/video/cx231xx/cx231xx-417.c index 4c7cac3b625..fc9526a5b74 100644 --- a/drivers/media/video/cx231xx/cx231xx-417.c +++ b/drivers/media/video/cx231xx/cx231xx-417.c | |||
@@ -940,14 +940,14 @@ static int cx231xx_load_firmware(struct cx231xx *dev) | |||
940 | u16 _buffer_size = 4096; | 940 | u16 _buffer_size = 4096; |
941 | u8 *p_buffer; | 941 | u8 *p_buffer; |
942 | 942 | ||
943 | p_current_fw = (u32 *)vmalloc(1884180*4); | 943 | p_current_fw = vmalloc(1884180 * 4); |
944 | p_fw = p_current_fw; | 944 | p_fw = p_current_fw; |
945 | if (p_current_fw == 0) { | 945 | if (p_current_fw == 0) { |
946 | dprintk(2, "FAIL!!!\n"); | 946 | dprintk(2, "FAIL!!!\n"); |
947 | return -1; | 947 | return -1; |
948 | } | 948 | } |
949 | 949 | ||
950 | p_buffer = (u8 *)vmalloc(4096); | 950 | p_buffer = vmalloc(4096); |
951 | if (p_buffer == 0) { | 951 | if (p_buffer == 0) { |
952 | dprintk(2, "FAIL!!!\n"); | 952 | dprintk(2, "FAIL!!!\n"); |
953 | return -1; | 953 | return -1; |