On 21. 01. 19, 23:45, Antoine Robertson wrote: > Fix coding style issues > > Signed-off-by: Antoine Robertson <antoinerbr...@gmail.com> > --- > drivers/tty/moxa.c | 20 +++++++++----------- > 1 file changed, 9 insertions(+), 11 deletions(-) > > diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c > index 3a1a5e0ee93f..9b6dcb4f7905 100644 > --- a/drivers/tty/moxa.c > +++ b/drivers/tty/moxa.c ... > @@ -1159,9 +1158,8 @@ static int moxa_open(struct tty_struct *tty, struct > file *filp) > int port; > > port = tty->index; > - if (port == MAX_PORTS) { > + if (port == MAX_PORTS) > return capable(CAP_SYS_ADMIN) ? 0 : -EPERM; > - }
Put a newline instead here, please. > if (mutex_lock_interruptible(&moxa_openlock)) > return -ERESTARTSYS; > brd = &moxa_boards[port / MAX_PORTS_PER_BOARD]; -- js suse labs