V4L/DVB: ov511: cleanup: remove unneeded null check

We dereference "ov" unconditionally throughout the function so there is
no way it can be NULL here.  This code has been around for ages so if
it were possible for "ov" to be NULL someone would have complained.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Dan Carpenter 2010-05-05 02:59:48 -03:00 committed by Mauro Carvalho Chehab
parent 16ee9bb100
commit b9245d80c3
1 changed files with 1 additions and 1 deletions

View File

@ -5940,7 +5940,7 @@ ov51x_disconnect(struct usb_interface *intf)
ov->dev = NULL; ov->dev = NULL;
/* Free the memory */ /* Free the memory */
if (ov && !ov->user) { if (!ov->user) {
mutex_lock(&ov->cbuf_lock); mutex_lock(&ov->cbuf_lock);
kfree(ov->cbuf); kfree(ov->cbuf);
ov->cbuf = NULL; ov->cbuf = NULL;