diff options
| author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-13 13:43:36 -0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-13 13:43:36 -0200 |
| commit | e5a282b9882a1c796aa5c92ddf787b78987397e1 (patch) | |
| tree | b9bc21de4a56b915eac305b8ca88ff36214ff726 /linux/drivers/media/dvb/bt8xx | |
| parent | b696e4ec6e2f7499a539bbd32eeaaba007df6360 (diff) | |
| download | mediapointer-dvb-s2-e5a282b9882a1c796aa5c92ddf787b78987397e1.tar.gz mediapointer-dvb-s2-e5a282b9882a1c796aa5c92ddf787b78987397e1.tar.bz2 | |
getting rid of all casts of k[cmz]alloc() calls
From: "Robert P. J. Day" <rpjday@mindspring.com>
Run this:
============== cut here ==============
for f in $(grep -Erl "\([^\)]*\) *k[cmz]alloc" *) ; do
echo "De-casting $f..."
perl -pi -e "s/ ?= ?\([^\)]*\) *(k[cmz]alloc) *\(/ = \1\(/" $f
done
And then go through and reinstate those cases where code is casting pointers
to non-pointers.
And then drop a few hunks which conflicted with outstanding work.
kernel-sync:
Signed-off-by: Andrew Morton <akpm@osdl.org>
CC: v4l-dvb maintainer list <v4l-dvb-maintainer@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx')
| -rw-r--r-- | linux/drivers/media/dvb/bt8xx/dst_ca.c | 2 | ||||
| -rw-r--r-- | linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst_ca.c b/linux/drivers/media/dvb/bt8xx/dst_ca.c index 65742b1e0..ce64629fc 100644 --- a/linux/drivers/media/dvb/bt8xx/dst_ca.c +++ b/linux/drivers/media/dvb/bt8xx/dst_ca.c @@ -576,7 +576,7 @@ static int ca_send_message(struct dst_state *state, struct ca_msg *p_ca_message, struct ca_msg *hw_buffer; int result = 0; - if ((hw_buffer = (struct ca_msg *) kmalloc(sizeof (struct ca_msg), GFP_KERNEL)) == NULL) { + if ((hw_buffer = kmalloc(sizeof (struct ca_msg), GFP_KERNEL)) == NULL) { dprintk(verbose, DST_CA_ERROR, 1, " Memory allocation failure"); return -ENOMEM; } diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 742828084..254d9d1b5 100644 --- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c @@ -658,7 +658,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) case BTTV_BOARD_TWINHAN_DST: /* DST is not a frontend driver !!! */ - state = (struct dst_state *) kmalloc(sizeof (struct dst_state), GFP_KERNEL); + state = kmalloc(sizeof (struct dst_state), GFP_KERNEL); if (!state) { printk("dvb_bt8xx: No memory\n"); break; |
