Re: [PATCH] USB and Driver Core patches for 2.6.10

Greg KH
2005-01-08T08:51:22Z

ChangeSet 1.1938.439.50, 2005/01/06 17:28:51-08:00, jlamanna@gmail.com

[PATCH] USB: ov511.c - vfree() checking cleanups

ov511.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

drivers/usb/media/ov511.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)

diff -Nru a/drivers/usb/media/ov511.c b/drivers/usb/media/ov511.c
--- a/drivers/usb/media/ov511.c 2005-01-07 15:37:39 -08:00
+++ b/drivers/usb/media/ov511.c 2005-01-07 15:37:39 -08:00
@@ -3908,15 +3908,11 @@
ov->fbuf = NULL;
}

- if (ov->rawfbuf) {
- vfree(ov->rawfbuf);
- ov->rawfbuf = NULL;
- }
+ vfree(ov->rawfbuf);
+ ov->rawfbuf = NULL;

- if (ov->tempfbuf) {
- vfree(ov->tempfbuf);
- ov->tempfbuf = NULL;
- }
+ vfree(ov->tempfbuf);
+ ov->tempfbuf = NULL;

for (i = 0; i < OV511_NUMSBUF; i++) {
if (ov->sbuf[i].data) {