mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 09:14:19 +08:00
4dbe57d46d
This function had some left over code that returned 1 on error instead
negative error codes. Convert everything to use negative error codes. The
caller treats all non-zero returns the same so this does not affect run
time.
A couple places set "rc" instead of "status" so those error paths ended up
returning success by mistake. Get rid of the "rc" variable and use
"status" everywhere.
Remove the bogus "status = 0" initialization, as a future proofing measure
so the compiler will warn about uninitialized error codes.
Link: https://lore.kernel.org/r/20210810084753.GD23810@kili
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
qedi_dbg.c | ||
qedi_dbg.h | ||
qedi_debugfs.c | ||
qedi_fw_api.c | ||
qedi_fw_iscsi.h | ||
qedi_fw_scsi.h | ||
qedi_fw.c | ||
qedi_gbl.h | ||
qedi_hsi.h | ||
qedi_iscsi.c | ||
qedi_iscsi.h | ||
qedi_main.c | ||
qedi_nvm_iscsi_cfg.h | ||
qedi_sysfs.c | ||
qedi_version.h | ||
qedi.h |