summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-07-06 14:18:02 +0300
committerDavid S. Miller <davem@davemloft.net>2021-07-07 01:22:25 +0300
commitad1f37970875eef98eeaf478f55045f388b794a5 (patch)
tree5149c05190cb05f3fb1bc4b37dac68b0f7e0acf2 /scripts/gdb/linux/utils.py
parent5ddef2ad96019d9495424c6d5139dcb5b732bd58 (diff)
downloadlinux-ad1f37970875eef98eeaf478f55045f388b794a5.tar.xz
octeontx2-pf: Fix assigned error return value that is never used
Currently when the call to otx2_mbox_alloc_msg_cgx_mac_addr_update fails the error return variable rc is being assigned -ENOMEM and does not return early. rc is then re-assigned and the error case is not handled correctly. Fix this by returning -ENOMEM rather than assigning rc. Addresses-Coverity: ("Unused value") Fixes: 79d2be385e9e ("octeontx2-pf: offload DMAC filters to CGX/RPM block") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions