V4L/DVB: opera1: remove unneeded NULL check
"fw" is always a non-NULL pointer at this point, and anyway release_firmware() accepts NULL pointers. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
028816bc85
commit
a8e0712450
|
@ -483,9 +483,7 @@ static int opera1_xilinx_load_firmware(struct usb_device *dev,
|
|||
}
|
||||
}
|
||||
kfree(p);
|
||||
if (fw) {
|
||||
release_firmware(fw);
|
||||
}
|
||||
release_firmware(fw);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue