Skip to content

Commit

Permalink
typhoon: get rid of redundant conditional before all to release_firmw…
Browse files Browse the repository at this point in the history
…are()

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 <[email protected]>
Acked-by: David Dillow <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
jjuhl authored and Jiri Kosina committed Apr 30, 2012
1 parent c69a6ca commit b2cbf2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/3com/typhoon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b2cbf2e

Please sign in to comment.