aboutsummaryrefslogtreecommitdiff
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2022-03-03 16:01:24 +0200
committerDavid S. Miller <[email protected]>2022-03-04 09:21:23 +0000
commitdbd032856ba39b6e90d525b7e6340d61a04fcc8f (patch)
tree0faf7a71e685475c839bc188570372b63269f375 /lib/xarray.c
parentd219b4b674e9424ff047ecc568b79401427ad709 (diff)
net: dsa: felix: initialize "err" to 0 in felix_check_xtr_pkt()
Automated tools complain that felix_check_xtr_pkt() has logic to drain the CPU queue on the reception of a PTP packet over Ethernet, yet it returns an uninitialized error code in the case where the CPU queue was empty. This is not likely to happen (/possible if hardware works correctly), but it isn't a fatal condition either. The PTP packet will be dequeued from the CPU queue when the next PTP packet arrives. So initialize "err" to 0 for the case where nothing was dequeued during this iteration. Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions