WSL2-Linux-Kernel/drivers/staging/rtlwifi
Nathan Chancellor e8edc32d70 staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx
Clang warns:

drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_func_88xx.c:2472:11:
warning: implicit conversion from enumeration type 'enum
halmac_cmd_process_status' to different enumeration type 'enum
halmac_ret_status' [-Wenum-conversion]
                        return HALMAC_CMD_PROCESS_ERROR;
                        ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Fix this by using the proper enum for allocation failures,
HALMAC_RET_MALLOC_FAIL, which is used in the rest of this file.

Fixes: e4b08e16b7 ("staging: r8822be: check kzalloc return or bail")
Link: https://github.com/ClangBuiltLinux/linux/issues/375
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-21 10:58:11 +01:00
..
btcoexist Staging: rtlwifi: Remove Unneeded funition halbtc_get_wifi_rssi() 2018-11-05 14:16:32 +01:00
halmac staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx 2019-02-21 10:58:11 +01:00
phydm staging: rtlwifi: fix spelling mistake: "Hightest" -> "Highest" 2019-02-19 11:12:08 +01:00
rtl8822be staging: rtlwifi: rtl8822b: fix a missing check of alloc_skb 2019-01-15 16:08:28 +01:00
Kconfig staging: rtlwifi: replace ---help--- with help in Kconfig 2019-01-30 15:38:50 +01:00
Makefile
TODO
base.c staging: rtlwifi: SET_RATE_ID inline no arg reuse 2018-11-07 13:07:26 +01:00
base.h staging: rb8822be Change line not to end with '(' 2018-11-27 10:07:08 +01:00
cam.c
cam.h
core.c staging: rtlwifi: Add new line to stay in 80 characters 2018-11-20 10:53:54 +01:00
core.h
debug.c
debug.h
efuse.c staging: rtlwifi: Remove set but not used variables 'dataempty, hoffset' 2019-02-19 11:18:00 +01:00
efuse.h
pci.c
pci.h drivers: staging: rtlwifi: Start statement on a tabstop 2019-01-30 15:38:50 +01:00
ps.c staging: rtlwifi: Add spaces to match open parenthesis 2018-11-20 10:53:54 +01:00
ps.h
pwrseqcmd.h
rc.c
rc.h
regd.c Staging: rtlwifi: remove unnecessary NULL check 2018-09-25 20:51:33 +02:00
regd.h
stats.c
stats.h
wifi.h staging: rtlwifi: Removed unused define and code efuse_re_pg* from wifi.h 2018-10-02 15:18:37 -07:00