mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
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>
This commit is contained in:
parent
2add5f4661
commit
0ab1900539
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user