mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
When assoc_status not equal to IEEE802154_ASSOCIATION_SUCCESSFUL, the
return value assigned to either "-ERANGE" or "-EPERM" but this return
value will be overwritten to 0 after exiting the conditional scope.
So, jump to clear_assoc label to preserve the return value when
assoc_status not equal to IEEE802154_ASSOCIATION_SUCCESSFUL.
This is reported by Coverity Scan as "Unused value".
Fixes:
|
||
|---|---|---|
| .. | ||
| cfg.c | ||
| cfg.h | ||
| driver-ops.h | ||
| ieee802154_i.h | ||
| iface.c | ||
| Kconfig | ||
| llsec.c | ||
| llsec.h | ||
| mac_cmd.c | ||
| main.c | ||
| Makefile | ||
| mib.c | ||
| rx.c | ||
| scan.c | ||
| trace.c | ||
| trace.h | ||
| tx.c | ||
| util.c | ||