Skip to content

Commit

Permalink
wl1251: fix always return 0 error
Browse files Browse the repository at this point in the history
wl1251_event_ps_report() should not always return 0 because
wl1251_ps_set_mode() may fail. Change it to return 'ret'.

Fixes: f7ad1ee ("wl1251: retry power save entry")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200730073939.33704-1-wanghai38@huawei.com
  • Loading branch information
Wang Hai authored and Kalle Valo committed Aug 2, 2020
1 parent c3ab180 commit 20e6421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ti/wl1251/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static int wl1251_event_ps_report(struct wl1251 *wl,
break;
}

return 0;
return ret;
}

static void wl1251_event_mbox_dump(struct event_mailbox *mbox)
Expand Down

0 comments on commit 20e6421

Please sign in to comment.