linux/drivers/staging/rtl8192u
Nathan Chancellor e6e0a03574 staging: rtl8192u: Remove an unnecessary NULL check
Clang warns:

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:2663:47: warning:
address of array 'param->u.wpa_ie.data' will always evaluate to 'true'
[-Wpointer-bool-conversion]
            (param->u.wpa_ie.len && !param->u.wpa_ie.data))
                                    ~~~~~~~~~~~~~~~~~^~~~

This was exposed by commit deabe03523 ("Staging: rtl8192u: ieee80211:
Use !x in place of NULL comparisons") because we disable the warning
that would have pointed out the comparison against NULL is also false:

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:2663:46: warning:
comparison of array 'param->u.wpa_ie.data' equal to a null pointer is
always false [-Wtautological-pointer-compare]
            (param->u.wpa_ie.len && param->u.wpa_ie.data == NULL))
                                    ~~~~~~~~~~~~~~~~^~~~    ~~~~

Remove it so clang no longer warns.

Link: https://github.com/ClangBuiltLinux/linux/issues/487
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-22 14:45:36 +02:00
..
ieee80211 staging: rtl8192u: Remove an unnecessary NULL check 2019-05-22 14:45:36 +02:00
authors
changes
copying
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
r819xU_cmdpkt.c staging: rtl8192u: Fix misspellings in comments - Style 2018-11-05 14:16:33 +01:00
r819xU_cmdpkt.h staging:rtl8192u: Remove typedef of cmpk_set_cfg_t - Style 2018-07-30 11:12:32 +02:00
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c staging: rtl8192u: Fix misspelling in struct member name - Style 2018-11-05 14:16:33 +01:00
r819xU_firmware.h staging:rtl8192u: Remove typedef from enum opt_rst_type_e - Style 2018-09-10 17:12:16 +02:00
r819xU_phy.c staging:rtl8192u: Rename PHY_SetRF8256OFDMTxPower() - Style 2018-08-27 19:28:16 +02:00
r819xU_phy.h staging:rtl8192u: Refactor BaseBand_Config_Type - Style 2018-08-27 19:27:48 +02:00
r819xU_phyreg.h staging: rtl8192u: Fix misspellings in comments - Style 2018-11-05 14:16:33 +01:00
r8180_93cx6.c staging: rtl8192u: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8180_93cx6.h staging:rtl8192u: Add required SPDX-License-Identifier - Style 2018-09-10 10:37:54 +02:00
r8190_rtl8256.c staging: rtl8192u: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8190_rtl8256.h staging:rtl8192u: Add SPDX-License-Identifier tag - Style 2018-08-27 19:28:16 +02:00
r8192U_core.c staging: rtl8192u: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192U_dm.c staging: rtl8192u: r8192U_dm: Remove unnecessary comments. 2019-03-21 08:25:00 +01:00
r8192U_dm.h staging:rtl8192u: Clean up of spacing - Style 2018-08-05 16:21:07 +02:00
r8192U_hw.h staging: rtl8192u: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192U_wx.c staging: rtl8192u: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192U_wx.h staging: rtl8192u: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
r8192U.h staging: rtl8192u: rename struct name _rt_firmare_seg_container 2018-11-07 12:35:10 +01:00