mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-09 14:14:00 +08:00
[media] s2255drv: Remove redundant NULL test before release_firmware()
release_firmware() tests for NULL pointers on its own - there's no reason to do an explicit check before calling the function. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
b803cc58c3
commit
3fc82fa001
@ -1826,8 +1826,7 @@ static void s2255_destroy(struct s2255_dev *dev)
|
||||
usb_free_urb(dev->fw_data->fw_urb);
|
||||
dev->fw_data->fw_urb = NULL;
|
||||
}
|
||||
if (dev->fw_data->fw)
|
||||
release_firmware(dev->fw_data->fw);
|
||||
release_firmware(dev->fw_data->fw);
|
||||
kfree(dev->fw_data->pfw_data);
|
||||
kfree(dev->fw_data);
|
||||
/* reset the DSP so firmware can be reloaded next time */
|
||||
|
Loading…
Reference in New Issue
Block a user