]> git.baikalelectronics.ru Git - kernel.git/commit
staging: isdn: remove assignment in if conditionals
authorWambui Karuga <wambui.karugax@gmail.com>
Fri, 11 Oct 2019 07:20:44 +0000 (10:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2019 09:09:10 +0000 (11:09 +0200)
commit270e5af3bd6c6837632359c6ff9aa4c3173af3b3
tree4cb790c287287d5cba4c2c94df7b30092569c800
parent50eeefe1ac90874da58414f909442f7910c00737
staging: isdn: remove assignment in if conditionals

Remove variable assignment in if statements in
drivers/staging/isdn/avm/b1.c.
Issues reported by checkpatch.pl as:
ERROR: do not use assignment in if condition

Also refactor code around some if statements to remove comparisons
to NULL and unnecessary braces in single statement blocks.

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Link: https://lore.kernel.org/r/20191011072044.7022-1-wambui.karugax@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/isdn/avm/b1.c