diff options
| author | Jakub Kicinski <[email protected]> | 2022-05-20 19:43:13 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-05-23 00:23:05 +0000 |
| commit | 0c7ab953d1f2358cce5bcddf96877b16966bbabc (patch) | |
| tree | 4dc6c249bf4759b27ad1b7f96acfdcc544a67bb3 /net/unix/af_unix.c | |
| parent | dt-bindings: net: toshiba,visconti-dwmac: Update the common clock properties (diff) | |
| download | kernel-0c7ab953d1f2358cce5bcddf96877b16966bbabc.tar.gz kernel-0c7ab953d1f2358cce5bcddf96877b16966bbabc.zip | |
wifi: plfxlc: remove redundant NULL-check for GCC 12
GCC is upset that we check the return value of plfxlc_usb_dev()
even tho it can't be NULL:
drivers/net/wireless/purelifi/plfxlc/usb.c: In function ‘resume’:
drivers/net/wireless/purelifi/plfxlc/usb.c:840:20: warning: the comparison will always evaluate as ‘true’ for the address of ‘dev’ will never be NULL [-Waddress]
840 | if (!pl || !plfxlc_usb_dev(pl))
| ^
plfxlc_usb_dev() returns an address of one of the members of pl,
so it's safe to drop these checks.
Acked-by: Kalle Valo <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
