lp: Avoid comma separated statements

Use semicolons and braces.

Signed-off-by: Joe Perches <joe@perches.com>
Link: https://lore.kernel.org/r/850c60ea44927e8cb7604d178c613ff8fc667984.1598331148.git.joe@perches.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Joe Perches 2020-08-24 21:56:04 -07:00 коммит произвёл Greg Kroah-Hartman
Родитель 90ca6333fd
Коммит c2fef5f845
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -853,8 +853,10 @@ static void lp_console_write(struct console *co, const char *s,
count--; count--;
do { do {
written = parport_write(port, crlf, i); written = parport_write(port, crlf, i);
if (written > 0) if (written > 0) {
i -= written, crlf += written; i -= written;
crlf += written;
}
} while (i > 0 && (CONSOLE_LP_STRICT || written > 0)); } while (i > 0 && (CONSOLE_LP_STRICT || written > 0));
} }
} while (count > 0 && (CONSOLE_LP_STRICT || written > 0)); } while (count > 0 && (CONSOLE_LP_STRICT || written > 0));