net: cosa: move out assignment in if condition
authorPeng Li <lipeng321@huawei.com>
Wed, 16 Jun 2021 07:23:31 +0000 (15:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 07:52:33 +0000 (00:52 -0700)
commitb4d5f1e2cdebb436eea2137833f5cd267674875d
treed44d3b6715d602acc7fb7a959ebd1baeb68ed0b7
parent2076b3e61a323e38256be44289aa32ae12ecf79a
net: cosa: 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/cosa.c