Skip to content

Commit

Permalink
wireless, atmel: remove pointless test for NULL before release_firmwa…
Browse files Browse the repository at this point in the history
…re() call

release_firmware() does its own test. Explicitly checking before the
call is redundant.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Jesper Juhl authored and John W. Linville committed Apr 12, 2012
1 parent c987ce9 commit 7403302
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3989,8 +3989,7 @@ static int reset_atmel_card(struct net_device *dev)
atmel_copy_to_card(priv->dev, 0x8000, &fw[0x6000], len - 0x6000);
}

if (fw_entry)
release_firmware(fw_entry);
release_firmware(fw_entry);
}

err = atmel_wakeup_firmware(priv);
Expand Down

0 comments on commit 7403302

Please sign in to comment.