[ Upstream commit e9ca70c735ce66fc6a0e02c8b6958434f74ef8de ]
When the code execute this if statement, the value of ret is 0.
However, we can see from the ath10k_warn() log that the value of
ret should be -EINVAL.
Clean up smatch warning:
drivers/net/wireless/ath/ath10k/mac.c:5596 ath10k_add_interface() warn:
missing error code 'ret'
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| ahb.c | ||
| ahb.h | ||
| bmi.c | ||
| bmi.h | ||
| ce.c | ||
| ce.h | ||
| core.c | ||
| core.h | ||
| coredump.c | ||
| coredump.h | ||
| debug.c | ||
| debug.h | ||
| debugfs_sta.c | ||
| hif.h | ||
| htc.c | ||
| htc.h | ||
| htt.c | ||
| htt.h | ||
| htt_rx.c | ||
| htt_tx.c | ||
| hw.c | ||
| hw.h | ||
| mac.c | ||
| mac.h | ||
| p2p.c | ||
| p2p.h | ||
| pci.c | ||
| pci.h | ||
| qmi.c | ||
| qmi.h | ||
| qmi_wlfw_v01.c | ||
| qmi_wlfw_v01.h | ||
| rx_desc.h | ||
| sdio.c | ||
| sdio.h | ||
| snoc.c | ||
| snoc.h | ||
| spectral.c | ||
| spectral.h | ||
| swap.c | ||
| swap.h | ||
| targaddrs.h | ||
| testmode.c | ||
| testmode.h | ||
| testmode_i.h | ||
| thermal.c | ||
| thermal.h | ||
| trace.c | ||
| trace.h | ||
| txrx.c | ||
| txrx.h | ||
| usb.c | ||
| usb.h | ||
| wmi-ops.h | ||
| wmi-tlv.c | ||
| wmi-tlv.h | ||
| wmi.c | ||
| wmi.h | ||
| wow.c | ||
| wow.h | ||