diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-07-09 17:34:20 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-09 20:06:21 (GMT) |
commit | 0ab1900539d46a3a8b7a006819ef5ec0e3288e5b (patch) | |
tree | 7c18a6a4af9874ba8c88f91253f96787cd830054 /drivers/staging/slicoss | |
parent | 2add5f4661ce822fe16afabf925a0133d6b274fb (diff) | |
download | linux-0ab1900539d46a3a8b7a006819ef5ec0e3288e5b.tar.xz |
staging/slicoss: return -ENODEV if no devid matches
if no case matches we are simply asserting and doing break.
and i think we may need to return that -ENODEV , no device is
present, rather assert'ing.
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/slicoss')
-rw-r--r-- | drivers/staging/slicoss/slicoss.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index a511a2b..785e4c5 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -3745,8 +3745,7 @@ static u32 slic_card_locate(struct adapter *adapter) rdhostid_offset = SLIC_RDHOSTID_1GB; break; default: - ASSERT(0); - break; + return -ENODEV; } hostid_reg = |