[PATCH] vfree and kfree cleanup in drivers/
authorJesper Juhl <jesper.juhl@gmail.com>
Sat, 10 Sep 2005 07:26:54 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 10 Sep 2005 17:06:30 +0000 (10:06 -0700)
commitf9101210e7aa72daf92722d451a2f7e3af5f781f
tree9554007e19387f2d05352ab03332be50c5b95f5b
parent887c27f369abc458556a5ce8ab22ddd498474307
[PATCH] vfree and kfree cleanup in drivers/

This patch does a full cleanup of 'NULL checks before vfree', and a partial
cleanup of calls to kfree for all of drivers/ - the kfree bit is partial in
that I only did the files that also had vfree calls in them.  The patch
also gets rid of some redundant (void *) casts of pointers being passed to
[vk]free, and a some tiny whitespace corrections also crept in.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
20 files changed:
drivers/block/z2ram.c
drivers/cdrom/sbpcd.c
drivers/char/agp/backend.c
drivers/isdn/i4l/isdn_bsdcomp.c
drivers/isdn/i4l/isdn_common.c
drivers/md/dm-exception-store.c
drivers/media/common/saa7146_core.c
drivers/media/video/cpia_usb.c
drivers/media/video/stradis.c
drivers/media/video/video-buf.c
drivers/media/video/zoran_driver.c
drivers/media/video/zr36120.c
drivers/mtd/devices/mtdram.c
drivers/mtd/ftl.c
drivers/net/bsd_comp.c
drivers/scsi/53c7xx.c
drivers/scsi/cpqfcTSinit.c
drivers/scsi/osst.c
drivers/usb/media/stv680.c
drivers/video/vgastate.c