Re: [PATCH] tty: hvcs: simplify if-if to if-else

2022-05-02 Thread Christophe Leroy
Le 24/04/2022 à 11:13, Wan Jiabing a écrit : > Use if and else instead of if(A) and if (!A) and fix a coding style. > > Signed-off-by: Wan Jiabing Did you run 'checkpatch' on your patch ? Should be if (something) do_something(); else do_someth

[PATCH] tty: hvcs: simplify if-if to if-else

2022-04-24 Thread Wan Jiabing
Use if and else instead of if(A) and if (!A) and fix a coding style. Signed-off-by: Wan Jiabing --- drivers/tty/hvc/hvcs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c index 245da1dfd818..9b7e8246a464 100644 --- a/driver