浏览代码

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>
Devendra Naga 13 年之前
父节点
当前提交
0ab1900539
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/staging/slicoss/slicoss.c

+ 1 - 2
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 =