net: ixp4xx_hss: move out assignment in if condition
authorPeng Li <lipeng321@huawei.com>
Thu, 10 Jun 2021 07:20:01 +0000 (15:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 20:50:42 +0000 (13:50 -0700)
commit99ebe65eb9c0ada015931d239d9f2d1dc8897fee
tree133ad308d88f56096914596046086d0ee3c1d764
parent6487fab04f2734eefaae1c3c32eec364d5e26bf3
net: ixp4xx_hss: move out assignment in if condition

Should not use assignment in if condition.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/ixp4xx_hss.c