diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c index f9e58368c2df..d1d6440f1d71 100644 --- a/usr.bin/renice/renice.c +++ b/usr.bin/renice/renice.c @@ -82,17 +82,12 @@ main(int argc, char *argv[]) if (strcmp(*argv, "-n") == 0) { incr = 1; argc--, argv++; - if (argc == 0) + if (argc < 2) usage(); } if (getnum("priority", *argv, &prio)) return (1); - prio = atoi(*argv); argc--, argv++; - if (prio > PRIO_MAX) - prio = PRIO_MAX; - if (prio < PRIO_MIN) - prio = PRIO_MIN; for (; argc > 0; argc--, argv++) { if (strcmp(*argv, "-g") == 0) { which = PRIO_PGRP;