From 19d4beceb2819198ab15da688370867891594cf5 Mon Sep 17 00:00:00 2001 From: "Christian S.J. Peron" Date: Sun, 9 May 2004 01:53:31 +0000 Subject: [PATCH] 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 --- sbin/ipfw/ipfw2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index b0c28f6b02f4..0421995a02ce 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -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; }