]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/video/ov511.c
V4L/DVB: ov511: cleanup: remove unneeded null check
[net-next-2.6.git] / drivers / media / video / ov511.c
index 6085d55825559e57cd79edc9b695119af87faf68..a10912097b7a0a1201a01998c4286e39667b6331 100644 (file)
@@ -5940,7 +5940,7 @@ ov51x_disconnect(struct usb_interface *intf)
        ov->dev = NULL;
 
        /* Free the memory */
-       if (ov && !ov->user) {
+       if (!ov->user) {
                mutex_lock(&ov->cbuf_lock);
                kfree(ov->cbuf);
                ov->cbuf = NULL;