net: hdlc_ppp: move out assignment in if condition
authorPeng Li <lipeng321@huawei.com>
Thu, 17 Jun 2021 14:03:17 +0000 (22:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jun 2021 19:08:46 +0000 (12:08 -0700)
commit4ec479527b9a637d4115d428f0b59d28f0760723
tree4df7777338d737f63637ac0bb4c4786e0e226505
parentcb36c4112c528ffa6b2005bb083559c54d66810e
net: hdlc_ppp: 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_ppp.c