tty: tty_ldisc: Do not use assignment in if condition
authorXiaofei Tan <tanxiaofei@huawei.com>
Wed, 7 Apr 2021 07:06:49 +0000 (15:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 08:33:00 +0000 (10:33 +0200)
commit408795b0252fe3b060c3c62b630f5419db415adf
treef61987708f88a10c4bdf8470b791cbd0fe68fc32
parent72a8dcd7bb9163cbdaabbd50541e2ded2347835e
tty: tty_ldisc: Do not use assignment in if condition

Do not use assignment in if condition following the advice of
checkpatch.pl.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1617779210-51576-10-git-send-email-tanxiaofei@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c