1
0
Fork 0
alistair23-linux/drivers/staging/rtlwifi/halmac
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
..
halmac_88xx staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx 2019-02-21 10:58:11 +01:00
halmac_2_platform.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_api.c staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_api.h staging: rtlwifi: Remove empty halmac_pcie_reg.h 2018-07-13 11:37:34 +02:00
halmac_bit2.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_bit_8822b.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_fw_info.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_fw_offload_c2h_nic.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_fw_offload_h2c_nic.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_h2c_extra_info_nic.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_intf_phy_cmd.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_original_c2h_nic.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_original_h2c_nic.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_pwr_seq_cmd.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_reg2.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_reg_8822b.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_rx_bd_chip.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_rx_bd_nic.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_rx_desc_chip.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_rx_desc_nic.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_sdio_reg.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_tx_bd_chip.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_tx_bd_nic.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_tx_desc_chip.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_tx_desc_nic.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_type.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
halmac_usb_reg.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00
rtl_halmac.c staging: rtlwifi: Return -ENOMEM instead of -1 2018-10-02 15:18:36 -07:00
rtl_halmac.h staging: rtlwifi: Replace license boilerplate with SPDX identifiers 2018-05-06 19:01:29 -07:00