Skip to content

Commit

Permalink
tg3: remove redundant NULL test before release_firmware() call
Browse files Browse the repository at this point in the history
There is no need to test for a NULL pointer before calling
release_firmware - the function does that on its own.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Jesper Juhl authored and Jiri Kosina committed Apr 30, 2012
1 parent b2cbf2e commit e3c5530
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -15842,8 +15842,7 @@ static void __devexit tg3_remove_one(struct pci_dev *pdev)
if (dev) {
struct tg3 *tp = netdev_priv(dev);

if (tp->fw)
release_firmware(tp->fw);
release_firmware(tp->fw);

tg3_reset_task_cancel(tp);

Expand Down

0 comments on commit e3c5530

Please sign in to comment.