diff options
| author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-05-27 17:18:17 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2016-06-16 18:05:06 +0300 |
| commit | 032e0f546c7e36217ebcae33f82d390c272d00ea (patch) | |
| tree | bc96d328cf621db17405aec2254a19d0b5608095 /include/linux/errqueue.h | |
| parent | cc524d1706b775466bf16a0a1130105ae5c70f43 (diff) | |
| download | linux-032e0f546c7e36217ebcae33f82d390c272d00ea.tar.xz | |
mwifiex: propagate mwifiex_add_card() errno code in mwifiex_sdio_probe()
There's only a check if mwifiex_add_card() returned a nonzero value, but
the actual error code is neither stored nor propagated to the caller. So
instead of always returning -1 (which is -EPERM and not a suitable errno
code in this case), propagate the value returned by mwifiex_add_card().
Patch also removes the assignment of sdio_disable_func() returned value
since it was overwritten anyways and what matters is to know the error
value returned by the first function that failed.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
