All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] [RESEND] [25/29] ov511.c - vfree() checking cleanups
@ 2005-01-04 23:17 jlamanna
  2005-01-07  1:28 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: jlamanna @ 2005-01-04 23:17 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 691 bytes --]

ov511.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@gmail.com>

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


--- linux-2.6.10-vanilla/drivers/usb/media/ov511.c	2004-12-24 13:34:30.000000000 -0800
+++ linux-2.6.10/drivers/usb/media/ov511.c	2005-01-04 11:29:17.205392360 -0800
@@ -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) {


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-07  1:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-04 23:17 [KJ] [PATCH] [RESEND] [25/29] ov511.c - vfree() checking cleanups jlamanna
2005-01-07  1:28 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.