When cleaning up the firmware, we don't need to check if rt2x00dev->fw is not-NULL. Signed-off-by: Ivo van Doorn <IvDoorn@xxxxxxxxx> --- drivers/net/wireless/rt2x00/rt2x00firmware.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/rt2x00/rt2x00firmware.c b/drivers/net/wireless/rt2x00/rt2x00firmware.c index 143e793..236025f 100644 --- a/drivers/net/wireless/rt2x00/rt2x00firmware.c +++ b/drivers/net/wireless/rt2x00/rt2x00firmware.c @@ -118,9 +118,7 @@ int rt2x00lib_load_firmware(struct rt2x00_dev *rt2x00dev) void rt2x00lib_free_firmware(struct rt2x00_dev *rt2x00dev) { - if (rt2x00dev->fw) { - release_firmware(rt2x00dev->fw); - rt2x00dev->fw = NULL; - } + release_firmware(rt2x00dev->fw); + rt2x00dev->fw = NULL; } -- 1.5.3 - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html