diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-15 15:11:37 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-06-15 15:11:37 -0400 |
commit | e38ff54020fb40fd2180707356377040a79c3efc (patch) | |
tree | 1a1a37480f88700513d7450076c829393ca3d6b7 /linux/drivers/media/dvb/siano/smscoreapi.c | |
parent | 118d0c5c79b895c0954f2ffdbd860973a94f7579 (diff) | |
download | mediapointer-dvb-s2-e38ff54020fb40fd2180707356377040a79c3efc.tar.gz mediapointer-dvb-s2-e38ff54020fb40fd2180707356377040a79c3efc.tar.bz2 |
sms1xxx: fix WARNING: unnecessary cast may hide bugs
From: Michael Krufky <mkrufky@linuxtv.org>
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>
Diffstat (limited to 'linux/drivers/media/dvb/siano/smscoreapi.c')
-rw-r--r-- | linux/drivers/media/dvb/siano/smscoreapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.c b/linux/drivers/media/dvb/siano/smscoreapi.c index 6858f7d99..8d7ede0e8 100644 --- a/linux/drivers/media/dvb/siano/smscoreapi.c +++ b/linux/drivers/media/dvb/siano/smscoreapi.c @@ -537,7 +537,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; |