From: Roy Marples Date: Fri, 6 May 2016 18:15:41 +0000 (+0000) Subject: No need to check if the passed pointer is valid. X-Git-Tag: v6.11.0~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c23c7aee9f0ccd16aeca9f2eba5ee0f8182ffa6;p=thirdparty%2Fdhcpcd.git No need to check if the passed pointer is valid. --- diff --git a/dhcp.h b/dhcp.h index feec2e3c..7e90a0cc 100644 --- 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"