1
0
Fork 0
alistair23-linux/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 staging: r8822be: Add Makefiles and Kconfig for new driver 2017-08-20 11:13:12 -07:00
TODO staging: rtlwifi: Reviewers fixes 2017-08-20 11:13:12 -07:00
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 staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
cam.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
core.c staging: rtlwifi: Add new line to stay in 80 characters 2018-11-20 10:53:54 +01:00
core.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
debug.c staging: rtlwifi: don't check the return value of debugfs_create_file 2018-06-01 10:47:43 +02:00
debug.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
efuse.c staging: rtlwifi: Remove set but not used variables 'dataempty, hoffset' 2019-02-19 11:18:00 +01:00
efuse.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
pci.c staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
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 staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
pwrseqcmd.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
rc.c staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
rc.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
regd.c Staging: rtlwifi: remove unnecessary NULL check 2018-09-25 20:51:33 +02:00
regd.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
stats.c staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
stats.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
wifi.h staging: rtlwifi: Removed unused define and code efuse_re_pg* from wifi.h 2018-10-02 15:18:37 -07:00