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:
Родитель
b2cbf2e31b
Коммит
e3c5530b96
|
@ -15842,8 +15842,7 @@ 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);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче