net: hdlc_x25: move out assignment in if condition
authorPeng Li <lipeng321@huawei.com>
Fri, 4 Jun 2021 07:32:09 +0000 (15:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jun 2021 21:34:17 +0000 (14:34 -0700)
commitec1f377412444432e3585ff65d3b563d1c148738
tree96f74e7751a3366f19bdbd2bf3cd643172143511
parent579ebffe797368b47b7e677fba2ecfc108ae154b
net: hdlc_x25: 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/hdlc_x25.c