1
0
Fork 0

wl1251: fix always return 0 error

[ Upstream commit 20e6421344 ]

wl1251_event_ps_report() should not always return 0 because
wl1251_ps_set_mode() may fail. Change it to return 'ret'.

Fixes: f7ad1eed4d ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
5.4-rM2-2.2.x-imx-squashed
Wang Hai 2020-07-30 15:39:39 +08:00 committed by Greg Kroah-Hartman
parent 3bec3e41db
commit 2684577dd9
1 changed files with 1 additions and 1 deletions

View File

@ -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)