staging: wilc1000: removes an unnecessary if-condition
authorLeo Kim <leo.kim@atmel.com>
Tue, 15 Mar 2016 09:48:14 +0000 (18:48 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
This patch removes an unnecessary if-condition.
Regardless of an if-condition is performed unconditionally '_end_' statement.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c

index ea671a9850892cdc89f46b918ece9da3605ceaf4..08937fe42b42e6962253e857ec25ffb908838dcf 100644 (file)
@@ -895,8 +895,6 @@ static void wilc_wlan_handle_isr_ext(struct wilc *wilc, u32 int_status)
                                              DATA_INT_CLR | ENABLE_RX_VMM);
                ret = wilc->hif_func->hif_block_rx_ext(wilc, 0, buffer, size);
 
-               if (!ret)
-                       goto _end_;
 _end_:
                if (ret) {
                        offset += size;