typhoon: get rid of redundant conditional before all to release_firmware()

There's no need to test for a NULL pointer before calling
release_firmware() since the function does that check itself, so
remove the redundant test.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: David Dillow <dave@thedillows.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
Jesper Juhl 2012-04-09 22:50:10 +02:00 коммит произвёл Jiri Kosina
Родитель c69a6ca1a4
Коммит b2cbf2e31b
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -2549,8 +2549,7 @@ typhoon_init(void)
static void __exit
typhoon_cleanup(void)
{
if (typhoon_fw)
release_firmware(typhoon_fw);
release_firmware(typhoon_fw);
pci_unregister_driver(&typhoon_driver);
}