Skip to contentSkip to conversation

ov511.c - vfree() checking cleanups

PATCH RESEND Applied [email protected] 2 participants 2 messages Jan 4, 2005 – Jan 7, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 25/29 ov511.c - vfree() checking cleanups

ov511.c vfree() checking cleanups.

Signed-off by: James Lamanna <[email protected]>

 ov511.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
drivers/usb/media/ov511.c +4 -8
@@ -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) {

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors