ov511.c vfree() checking cleanups.

Signed-off by: James Lamanna <[EMAIL PROTECTED]>


Signed-off-by: Domen Puncer <[EMAIL PROTECTED]>
---


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

diff -puN drivers/usb/media/ov511.c~vfree-drivers_usb_media_ov511 
drivers/usb/media/ov511.c
--- kj/drivers/usb/media/ov511.c~vfree-drivers_usb_media_ov511  2005-01-10 
18:01:05.000000000 +0100
+++ kj-domen/drivers/usb/media/ov511.c  2005-01-10 18:01:05.000000000 +0100
@@ -3908,15 +3908,11 @@ ov51x_do_dealloc(struct usb_ov511 *ov)
                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) {
_


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to