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/video/dabusb.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/video/dabusb.c')
-rw-r--r-- | linux/drivers/media/video/dabusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/dabusb.c b/linux/drivers/media/video/dabusb.c index 44c43d63c..d6c001ebe 100644 --- a/linux/drivers/media/video/dabusb.c +++ b/linux/drivers/media/video/dabusb.c @@ -225,7 +225,7 @@ static int dabusb_alloc_buffers (pdabusb_t s) pipesize, packets, transfer_buffer_length); while (buffers < (s->total_buffer_size << 10)) { - b = (pbuff_t) kzalloc (sizeof (buff_t), GFP_KERNEL); + b = kzalloc(sizeof (buff_t), GFP_KERNEL); if (!b) { err("kzalloc(sizeof(buff_t))==NULL"); goto err; @@ -666,7 +666,7 @@ static int dabusb_ioctl (struct inode *inode, struct file *file, unsigned int cm switch (cmd) { case IOCTL_DAB_BULK: - pbulk = (pbulk_transfer_t) kmalloc (sizeof (bulk_transfer_t), GFP_KERNEL); + pbulk = kmalloc(sizeof (bulk_transfer_t), GFP_KERNEL); if (!pbulk) { ret = -ENOMEM; |