mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 04:11:49 +00: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 <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);
|
kfree(p);
|
||||||
if (fw) {
|
|
||||||
release_firmware(fw);
|
release_firmware(fw);
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user