]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: aquantia: fix error handling in aq_ptp_poll
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 28 Oct 2019 07:04:47 +0000 (02:04 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Oct 2019 23:42:17 +0000 (16:42 -0700)
commit76d7774e203d422edb6b8c6db800478ca029fde5
tree24b2f66b693550521d9f5d9cc2bed5fafd5f765c
parent207136dfeb3b2cde873b48d745100fa688c83f06
net: aquantia: fix error handling in aq_ptp_poll

Fix currenty ignored returned error by properly checking *err* after
calling aq_nic->aq_hw_ops->hw_ring_hwts_rx_fill().

Addresses-Coverity-ID: 1487357 ("Unused value")
Fixes: 04a1839950d9 ("net: aquantia: implement data PTP datapath")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c