From 58533b221730c0ccbcd7d7694b2111679f11d99d Mon Sep 17 00:00:00 2001 From: Mateusz Kulikowski Date: Mon, 19 Oct 2015 22:00:24 +0200 Subject: [PATCH] staging: rtl8192e: init_fw: Drop unneded check rst_opt is always equal to OPT_SYSTEM_RESET in this scope. Signed-off-by: Mateusz Kulikowski Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c index 528b68ac0207..42eabce56236 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c @@ -271,9 +271,7 @@ bool rtl92e_init_fw(struct net_device *dev) pfirmware->blobs[i].size = fw_entry->size + 128; } - - if (rst_opt == OPT_SYSTEM_RESET) - release_firmware(fw_entry); + release_firmware(fw_entry); } } -- 2.39.5