mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
028816bc85
commit
a8e0712450
1 changed files with 1 additions and 3 deletions
|
|
@ -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 a new issue