Commit 773bc973 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

tokenring: remove unneeded NULL checks

"fw_entry" is always non-NULL at this point and anyway
release_firmware() handles NULL parameters.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 739a91ef
...@@ -1321,13 +1321,11 @@ static int tms380tr_reset_adapter(struct net_device *dev) ...@@ -1321,13 +1321,11 @@ static int tms380tr_reset_adapter(struct net_device *dev)
/* Clear CPHALT and start BUD */ /* Clear CPHALT and start BUD */
SIFWRITEW(c, SIFACL); SIFWRITEW(c, SIFACL);
if (fw_entry)
release_firmware(fw_entry); release_firmware(fw_entry);
return (1); return (1);
} }
} while(count == 0); } while(count == 0);
if (fw_entry)
release_firmware(fw_entry); release_firmware(fw_entry);
printk(KERN_INFO "%s: Adapter Download Failed\n", dev->name); printk(KERN_INFO "%s: Adapter Download Failed\n", dev->name);
return (-1); return (-1);
......
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