]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB (8287): sms1xxx: fix WARNING: unnecessary cast may hide bugs
authorMichael Krufky <mkrufky@linuxtv.org>
Sun, 15 Jun 2008 22:11:37 +0000 (19:11 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:22:03 +0000 (07:22 -0300)
fix the following checkpatch.pl warning:

WARNING: unnecessary cast may hide bugs,
see http://c-faq.com/malloc/mallocnocast.html

596: FILE: linux/drivers/media/dvb/siano/smscoreapi.c:540:
+ msg = (struct SmsMsgHdr_ST *) kmalloc(PAGE_SIZE, GFP_KERNEL | GFP_DMA);

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/siano/smscoreapi.c

index e3c6d9cb562158e51f7602f708d7ed85b2ff1be4..423ca5744952395bd4c63b7f9d252bb18d68ab67 100644 (file)
@@ -489,7 +489,7 @@ int smscore_load_firmware_family2(struct smscore_device_t *coredev,
        }
 
        /* PAGE_SIZE buffer shall be enough and dma aligned */
-       msg = (struct SmsMsgHdr_ST *) kmalloc(PAGE_SIZE, GFP_KERNEL | GFP_DMA);
+       msg = kmalloc(PAGE_SIZE, GFP_KERNEL | GFP_DMA);
        if (!msg)
                return -ENOMEM;