staging: wilc1000: return zero on success and non-zero on function failure
commit7a80aa23d0f0f52478339840577137f556bf9121
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 23 Jan 2020 12:50:47 +0000 (23 12:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 18:16:12 +0000 (23 19:16 +0100)
tree7f1348bf90f4a2c7e5fd0d537a197611ea4ff489
parent0443b3f4436321e1098fdf74432c8867016339da
staging: wilc1000: return zero on success and non-zero on function failure

Some of the HIF layer API's return zero for failure and non-zero for
success condition. Now, modified the functions to return zero for success
and non-zero for failure as its recommended approach suggested in [1].

1. https://lore.kernel.org/driverdev-devel/20191113183322.a54mh2w6dulklgsd@kili.mountain/

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20200123182129.4053-1-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/netdev.c
drivers/staging/wilc1000/sdio.c
drivers/staging/wilc1000/spi.c
drivers/staging/wilc1000/wlan.c