]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
No need to check if the passed pointer is valid.
authorRoy Marples <roy@marples.name>
Fri, 6 May 2016 18:15:41 +0000 (18:15 +0000)
committerRoy Marples <roy@marples.name>
Fri, 6 May 2016 18:15:41 +0000 (18:15 +0000)
dhcp.h

diff --git a/dhcp.h b/dhcp.h
index feec2e3cb3f56120560b0bcd7847fbca7a5f6aae..7e90a0ccdccab8b9ccf0b2d61cff50f96f90b46b 100644 (file)
--- a/dhcp.h
+++ b/dhcp.h
@@ -235,11 +235,10 @@ struct dhcp_state {
 #define D_STATE_RUNNING(ifp)                                                  \
        (D_CSTATE((ifp)) && D_CSTATE((ifp))->new && D_CSTATE((ifp))->reason)
 
-#define IS_DHCP(b)     ((b) != NULL &&                 \
-                           (b)->vend[0] == 0x63 &&     \
-                           (b)->vend[1] == 0x82 &&     \
-                           (b)->vend[2] == 0x53 &&     \
-                           (b)->vend[3] == 0x63)
+#define IS_DHCP(b)     ((b)->vend[0] == 0x63 &&        \
+                        (b)->vend[1] == 0x82 &&        \
+                        (b)->vend[2] == 0x53 &&        \
+                        (b)->vend[3] == 0x63)
 
 #include "dhcpcd.h"
 #include "if-options.h"