staging/slicoss: return -ENODEV if no devid matches
authorDevendra Naga <devendra.aaru@gmail.com>
Mon, 9 Jul 2012 17:34:20 +0000 (23:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 20:06:21 +0000 (13:06 -0700)
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>
drivers/staging/slicoss/slicoss.c

index a511a2b..785e4c5 100644 (file)
@@ -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 =