]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
wireless/wl1271: remove redundant if-statement v2
authorNicolas Kaiser <nikai@nikai.net>
Mon, 25 Oct 2010 13:30:03 +0000 (15:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:25:16 +0000 (13:25 -0500)
wl1271_ps_elp_sleep() is void and cannot return a value.

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
drivers/net/wireless/wl12xx/wl1271_event.c

index 7b3f503829631018630ca21e9faa67f840db10c8..38ccef7d73a5213e855b6e4def49b3cacf50a203 100644 (file)
@@ -134,8 +134,6 @@ static int wl1271_event_ps_report(struct wl1271 *wl,
 
                /* go to extremely low power mode */
                wl1271_ps_elp_sleep(wl);
-               if (ret < 0)
-                       break;
                break;
        case EVENT_EXIT_POWER_SAVE_FAIL:
                wl1271_debug(DEBUG_PSM, "PSM exit failed");