From: Devendra Naga Date: Mon, 9 Jul 2012 17:34:20 +0000 (+0530) Subject: staging/slicoss: return -ENODEV if no devid matches X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0ab1900539d46a3a8b7a006819ef5ec0e3288e5b;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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 =