[xfer] Make consistent assumptions that xfer metadata can never be NULL
[people/lynusvaz/gpxe.git] / src / net / udp / dhcp.c
index d149214..776635c 100644 (file)
@@ -1052,12 +1052,6 @@ static int dhcp_deliver_iob ( struct xfer_interface *xfer,
        int rc = 0;
 
        /* Sanity checks */
-       if ( ! meta ) {
-               DBGC ( dhcp, "DHCP %p received packet without metadata\n",
-                      dhcp );
-               rc = -EINVAL;
-               goto err_no_meta;
-       }
        if ( ! meta->src ) {
                DBGC ( dhcp, "DHCP %p received packet without source port\n",
                       dhcp );
@@ -1106,7 +1100,6 @@ static int dhcp_deliver_iob ( struct xfer_interface *xfer,
        dhcppkt_put ( dhcppkt );
  err_alloc_dhcppkt:
  err_no_src:
- err_no_meta:
        free_iob ( iobuf );
        return rc;
 }