diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 16:50:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-12 15:06:07 -0400 |
commit | c987ce93ad7f96ca637d1f866ff22cfcbfe99d47 (patch) | |
tree | 9bbfd8b9c17609b7dc3ca1004d7a53ff2a2b687c /drivers/net/wireless/at76c50x-usb.c | |
parent | ec71a07d1c042f2ddddc4463a9f7cfaf7adc4f71 (diff) |
wireless, at76c50x:: Don't needlessly test for NULL before calling release_firmware()
The release_firmware() function deals gracefully with being passed a
NULL pointer, so explicit tests before the call are rather pointless.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/at76c50x-usb.c')
-rw-r--r-- | drivers/net/wireless/at76c50x-usb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c index 4045e5ab0555..faa8bcb4aac1 100644 --- a/drivers/net/wireless/at76c50x-usb.c +++ b/drivers/net/wireless/at76c50x-usb.c | |||
@@ -2512,10 +2512,8 @@ static void __exit at76_mod_exit(void) | |||
2512 | 2512 | ||
2513 | printk(KERN_INFO DRIVER_DESC " " DRIVER_VERSION " unloading\n"); | 2513 | printk(KERN_INFO DRIVER_DESC " " DRIVER_VERSION " unloading\n"); |
2514 | usb_deregister(&at76_driver); | 2514 | usb_deregister(&at76_driver); |
2515 | for (i = 0; i < ARRAY_SIZE(firmwares); i++) { | 2515 | for (i = 0; i < ARRAY_SIZE(firmwares); i++) |
2516 | if (firmwares[i].fw) | 2516 | release_firmware(firmwares[i].fw); |
2517 | release_firmware(firmwares[i].fw); | ||
2518 | } | ||
2519 | led_trigger_unregister_simple(ledtrig_tx); | 2517 | led_trigger_unregister_simple(ledtrig_tx); |
2520 | } | 2518 | } |
2521 | 2519 | ||