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/ttusb-dec/ttusbdecfe.c | |
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/ttusb-dec/ttusbdecfe.c')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-dec/ttusbdecfe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusbdecfe.c b/linux/drivers/media/dvb/ttusb-dec/ttusbdecfe.c index 42f39a89b..a6fb1d6a7 100644 --- a/linux/drivers/media/dvb/ttusb-dec/ttusbdecfe.c +++ b/linux/drivers/media/dvb/ttusb-dec/ttusbdecfe.c @@ -195,7 +195,7 @@ struct dvb_frontend* ttusbdecfe_dvbt_attach(const struct ttusbdecfe_config* conf struct ttusbdecfe_state* state = NULL; /* allocate memory for the internal state */ - state = (struct ttusbdecfe_state*) kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL); + state = kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL); if (state == NULL) return NULL; @@ -215,7 +215,7 @@ struct dvb_frontend* ttusbdecfe_dvbs_attach(const struct ttusbdecfe_config* conf struct ttusbdecfe_state* state = NULL; /* allocate memory for the internal state */ - state = (struct ttusbdecfe_state*) kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL); + state = kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL); if (state == NULL) return NULL; |