]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Style.
authorRoy Marples <roy@marples.name>
Mon, 6 Oct 2008 12:49:07 +0000 (12:49 +0000)
committerRoy Marples <roy@marples.name>
Mon, 6 Oct 2008 12:49:07 +0000 (12:49 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index d10476f8645d9b4d394a3d1d6df4b37e40613f4c..9c2670008157411c6a7083dee7c21eb65a85b6de 100644 (file)
--- 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;