diff options
| author | 2012-07-09 23:04:20 +0530 | |
|---|---|---|
| committer | 2012-07-09 13:06:21 -0700 | |
| commit | 0ab1900539d46a3a8b7a006819ef5ec0e3288e5b (patch) | |
| tree | 7c18a6a4af9874ba8c88f91253f96787cd830054 | |
| parent | staging/slicoss: remove not-needed ASSERT (diff) | |
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>
| -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 a511a2be9c70..785e4c5f269e 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 = |
