tokenring: remove unneeded NULL checks
Subsystems (3)
PATCH 1/1 tokenring: remove unneeded NULL checks
"fw_entry" is always non-NULL at this point and anyway release_firmware() handles NULL parameters.
Signed-off-by Dan Carpenter <[email protected]>
drivers/net/tokenring/tms380tr.c +2 -4
@@ -1321,14 +1321,12 @@ static int tms380tr_reset_adapter(struct net_device *dev)/* Clear CPHALT and start BUD */ SIFWRITEW (c,SIFACL ); -if (fw_entry) -release_firmware (fw_entry); +release_firmware (fw_entry);return (1 ); } }while (count =0 ); -if (fw_entry) -release_firmware (fw_entry); +release_firmware (fw_entry);printk (KERN_INFO "%s: Adapter Download Failed\n" , dev->name);return (-1 ); }
From: Dan Carpenter <[email protected]>
Date: Thu, 19 Aug 2010 12:04:38 +0200
Quoted 4 lines
"
fw_entry" is always non-NULL at this point and anywayrelease_firmware()handles NULL parameters.Signed-off-by Dan Carpenter <[email protected]>
Applied, thanks Dan.