Remove redundant sanity check before add_mac() when adding

mac ipfw rules. The exact same sanity check is performed as
the first operation of add_mac(), so there is no sense
in doing it twice.

Approved by:	bmilekic (mentor)
PR:		bin/55981
This commit is contained in:
Christian S.J. Peron 2004-05-09 01:53:31 +00:00
parent 3f39cca96b
commit 19d4beceb2

View File

@ -3388,8 +3388,6 @@ add(int ac, char *av[])
break;
case TOK_MAC:
if (ac < 2)
errx(EX_USAGE, "MAC dst-mac src-mac");
if (add_mac(cmd, ac, av)) {
ac -= 2; av += 2;
}