diff options
| author | 2026-02-05 16:57:36 +0800 | |
|---|---|---|
| committer | 2026-02-10 10:58:20 +0100 | |
| commit | 2dcc93475559168a7d3ccffcc35d79f19416782b (patch) | |
| tree | bbc17ae2d80c497b874d7dd5e0fe71e0933ab4b3 /tools/perf/scripts/python | |
| parent | net: fec: transmit XDP frames in bulk (diff) | |
net: fec: remove unnecessary NULL pointer check when clearing TX BD ring
The tx_buf pointer will not NULL when its type is FEC_TXBUF_T_XDP_NDO or
FEC_TXBUF_T_XDP_TX. If the type is FEC_TXBUF_T_SKB, dev_kfree_skb_any()
will do NULL pointer check. So it is unnecessary to do NULL pointer check
in fec_enet_bd_init() and fec_enet_tx_queue().
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260205085742.2685134-10-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
