staging: rtl8192e: init_fw: Drop unneded check
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Mon, 19 Oct 2015 20:00:24 +0000 (22:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:23:13 +0000 (19:23 -0700)
rst_opt is always equal to OPT_SYSTEM_RESET in this scope.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c

index 528b68ac02073a04dc7db16ce3fb76731438cb3d..42eabce56236b6f25e3aa980b71644d4b35740b6 100644 (file)
@@ -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);
                        }
                }