From: Roy Marples Date: Mon, 6 Oct 2008 12:49:07 +0000 (+0000) Subject: Style. X-Git-Tag: v5.0.0~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2db75f1366ddbf270e27e82f865e1b972b72bde2;p=thirdparty%2Fdhcpcd.git Style. --- diff --git a/dhcp.c b/dhcp.c index d10476f8..9c267000 100644 --- a/dhcp.c +++ b/dhcp.c @@ -912,13 +912,10 @@ make_message(struct dhcp_message **message, if (!(opt->type & REQUEST || has_option_mask(ifo->requestmask, opt->option))) continue; - switch (opt->option) { - case DHO_RENEWALTIME: /* FALLTHROUGH */ - case DHO_REBINDTIME: - if (type == DHCP_INFORM) - continue; - break; - } + if (type == DHCP_INFORM && + (opt->option == DHO_RENEWALTIME || + opt->option == DHO_REBINDTIME)) + continue; *p++ = opt->option; } *n_params = p - n_params - 1;