Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jesper Juhl <jj@chaosbits.net>
Acked-by: David Dillow <dave@thedillows.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Jesper Juhl and committed by
Jiri Kosina
b2cbf2e3 c69a6ca1

+1 -2
+1 -2
drivers/net/ethernet/3com/typhoon.c
··· 2549 2549 static void __exit 2550 2550 typhoon_cleanup(void) 2551 2551 { 2552 - if (typhoon_fw) 2553 - release_firmware(typhoon_fw); 2552 + release_firmware(typhoon_fw); 2554 2553 pci_unregister_driver(&typhoon_driver); 2555 2554 } 2556 2555