staging: slicoss: handle errors from slic_config_get
authorDavid Matlack <matlackdavid@gmail.com>
Fri, 23 May 2014 04:38:45 +0000 (21:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 11:16:40 +0000 (20:16 +0900)
commit47a401a8aec98b152e328858bbb4406c7e3b61e1
tree9678eaa1975d052d583dd8c4cf4b767d31d2a5e4
parent28277a55fd8e9d0c53647734d824a6bf7ba92e04
staging: slicoss: handle errors from slic_config_get

slic_config_get() can fail. Change the return type from void to
int and handle the error in slic_card_init(). So now, instead of
silently failing (and then timing out waiting for the config data),
the driver will fail loudly at request time.

Signed-off-by: David Matlack <matlackdavid@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c