drivers: ieee802154_nrf5: Remove unnecessary NULL pointer check

After changes in commit a42d6c98d3, the
pkt can no longer be a NULL pointer. Remove the unnecessary NULL pointer
check to silence the Coverity.

Coverity ID: 219536
Fixes #32912

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2021-03-05 12:01:51 +01:00 committed by Jukka Rissanen
commit a586f5818c

View file

@ -199,9 +199,7 @@ drop:
nrf_802154_buffer_free_raw(rx_frame->psdu); nrf_802154_buffer_free_raw(rx_frame->psdu);
rx_frame->psdu = NULL; rx_frame->psdu = NULL;
if (pkt) { net_pkt_unref(pkt);
net_pkt_unref(pkt);
}
} }
} }