ctlr->mode is of unsigned type, it is never less than zero.
Fix this by using an extra variable called 'res', to store return value
from sysfs_match_string() and assign that to ctlr->mode on the success
path.
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| fcoe.c | ||
| fcoe.h | ||
| fcoe_ctlr.c | ||
| fcoe_sysfs.c | ||
| fcoe_transport.c | ||
| libfcoe.h | ||