Skip to content

Commit

Permalink
wlcore: Fix the usage of wait_for_completion_timeout
Browse files Browse the repository at this point in the history
The return value of wait_for_completion_timeout() is always
>= 0 with unsigned int type.

So the condition "ret < 0" or "ret >= 0" is pointless.

Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Luciano Coelho <luca@coelho.fi>
  • Loading branch information
Chuansheng Liu authored and Luciano Coelho committed Nov 16, 2012
1 parent 4eeac22 commit 25b08bf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/ti/wlcore/ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ int wl1271_ps_elp_wakeup(struct wl1271 *wl)
wl12xx_queue_recovery_work(wl);
ret = -ETIMEDOUT;
goto err;
} else if (ret < 0) {
wl1271_error("ELP wakeup completion error.");
goto err;
}
}

Expand Down

0 comments on commit 25b08bf

Please sign in to comment.