net: ucc_geth: Drop extraneous parentheses in comparison
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 23 Oct 2020 03:32:36 +0000 (14:32 +1100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Oct 2020 01:44:06 +0000 (18:44 -0700)
commitdab234227cbdc6a088c6f9bce38b5dcfefe90832
tree36f26f537d7f28745eacad05c669877055d60963
parent0c3b7f4b812f708795fb5cc397432527421edc1b
net: ucc_geth: Drop extraneous parentheses in comparison

Clang warns about the extra parentheses in this comparison:

  drivers/net/ethernet/freescale/ucc_geth.c:1361:28:
  warning: equality comparison with extraneous parentheses
    if ((ugeth->phy_interface == PHY_INTERFACE_MODE_SGMII))
         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~

It seems clear the intent here is to do a comparison not an
assignment, so drop the extra parentheses to avoid any confusion.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201023033236.3296988-1-mpe@ellerman.id.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/ucc_geth.c