tg3: remove redundant NULL test before release_firmware() call

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>
This commit is contained in:
Jesper Juhl 2012-04-09 22:50:15 +02:00 committed by Jiri Kosina
parent b2cbf2e31b
commit e3c5530b96
1 changed files with 1 additions and 2 deletions

View File

@ -15842,7 +15842,6 @@ static void __devexit tg3_remove_one(struct pci_dev *pdev)
if (dev) { if (dev) {
struct tg3 *tp = netdev_priv(dev); struct tg3 *tp = netdev_priv(dev);
if (tp->fw)
release_firmware(tp->fw); release_firmware(tp->fw);
tg3_reset_task_cancel(tp); tg3_reset_task_cancel(tp);