shell: more efficient check for EOL in read
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 9 Aug 2017 12:04:07 +0000 (14:04 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 9 Aug 2017 12:04:07 +0000 (14:04 +0200)
commitcde46f75cbe8069e06b68396a7f6dc9564fbf2c4
tree2406602d311b0c20d220481f7f84802caf2490f7
parent1f41c885fcafc67c9e957b74ab9d223e09ff949a
shell: more efficient check for EOL in read

function                                             old     new   delta
shell_builtin_read                                  1334    1320     -14

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/shell_common.c
shell/shell_common.h