projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2add5f4
)
staging/slicoss: return -ENODEV if no devid matches
author
Devendra Naga
<
[email protected]
>
Mon, 9 Jul 2012 17:34:20 +0000
(23:04 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/slicoss/slicoss.c
patch
|
blob
|
history
diff --git
a/drivers/staging/slicoss/slicoss.c
b/drivers/staging/slicoss/slicoss.c
index a511a2be9c7038b5ef3ccd6d1869f5724ececd2b..785e4c5f269e51ff12bb6d377842549c125cd993 100644
(file)
--- 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 =