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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129058

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;
}