Commit b2cbf2e3 authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina

typhoon: get rid of redundant conditional before all to release_firmware()

There's no need to test for a NULL pointer before calling
release_firmware() since the function does that check itself, so
remove the redundant test.
Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Acked-by: default avatarDavid Dillow <dave@thedillows.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c69a6ca1
......@@ -2549,8 +2549,7 @@ typhoon_init(void)
static void __exit
typhoon_cleanup(void)
{
if (typhoon_fw)
release_firmware(typhoon_fw);
release_firmware(typhoon_fw);
pci_unregister_driver(&typhoon_driver);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment