aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-06-15 18:11:37 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:22:03 -0400
commite080842c6c31249010adb184f9efbbc5cb40bd2b (patch)
treec28916fdb6d06c3a4f51e721af0f5eee4625278c
parent18245e18eeae15e928b46c1ae0f3a19bdc50419d (diff)
V4L/DVB (8287): sms1xxx: fix WARNING: unnecessary cast may hide bugs
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>
-rw-r--r--drivers/media/dvb/siano/smscoreapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c
index e3c6d9cb5621..423ca5744952 100644
--- a/drivers/media/dvb/siano/smscoreapi.c
+++ b/drivers/media/dvb/siano/smscoreapi.c
@@ -489,7 +489,7 @@ int smscore_load_firmware_family2(struct smscore_device_t *coredev,
489 } 489 }
490 490
491 /* PAGE_SIZE buffer shall be enough and dma aligned */ 491 /* PAGE_SIZE buffer shall be enough and dma aligned */
492 msg = (struct SmsMsgHdr_ST *) kmalloc(PAGE_SIZE, GFP_KERNEL | GFP_DMA); 492 msg = kmalloc(PAGE_SIZE, GFP_KERNEL | GFP_DMA);
493 if (!msg) 493 if (!msg)
494 return -ENOMEM; 494 return -ENOMEM;
495 495