net: hdlc: move out assignment in if condition
authorPeng Li <lipeng321@huawei.com>
Tue, 1 Jun 2021 13:23:21 +0000 (21:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2021 23:57:47 +0000 (16:57 -0700)
commite50eb6c3578c6bd7c43c30bfa40a882f0815a2d2
tree8a81a85aca20ee0aef042cc9c707f734d4f4af8a
parent387847f295c86fe72693178ed1eab000154f98ff
net: hdlc: 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.c