Nathan Chancellor 971f5c4079 net: ax88796c: Remove pointless check in ax88796c_open()
Clang warns:

drivers/net/ethernet/asix/ax88796c_main.c:851:24: error: address of
array 'ax_local->phydev->advertising' will always evaluate to 'true'
[-Werror,-Wpointer-bool-conversion]
        if (ax_local->phydev->advertising &&
            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ ~~

advertising cannot be NULL here if ax_local is not NULL, which cannot
happen due to the check in ax88796c_probe(). Remove the check.

Link: https://github.com/ClangBuiltLinux/linux/issues/1492
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-26 14:57:23 +01:00
..
2021-10-22 10:16:09 -07:00
2021-10-08 11:57:54 -07:00
2021-10-25 14:04:18 +01:00
2021-10-22 10:16:14 -07:00
2021-10-09 11:55:01 +01:00
2021-10-22 10:16:18 -07:00
2021-10-14 23:06:28 +02:00
2021-10-09 11:55:01 +01:00
2021-10-09 11:55:01 +01:00
2021-10-22 10:15:54 -07:00