summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/look/look.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.bin/look/look.c b/usr.bin/look/look.c
index 68d6755..e6fd1b8 100644
--- a/usr.bin/look/look.c
+++ b/usr.bin/look/look.c
@@ -276,10 +276,8 @@ linear_search(wchar_t *string, unsigned char *front, unsigned char *back)
switch (compare(string, front, back)) {
case EQUAL: /* Found it. */
return (front);
- break;
case LESS: /* No such string. */
return (NULL);
- break;
case GREATER: /* Keep going. */
break;
}
OpenPOWER on IntegriCloud