baseband/acc100: remove logically dead code
PATCH 1/1 baseband/acc100: remove logically dead code
Removing a few lines of dead code reported recently by coverity. The related code was not released yet hence does not required to be fixed on stable branch.
Coverity issues: 363451, 363454, 363455
Nicolas Chautru (1):
baseband/acc100: remove logically dead code
drivers/baseband/acc100/rte_acc100_pmd.c | 9 --------- 1 file changed, 9 deletions(-)
Signature · 1 line
1.8.3.1
PATCH 1/1 baseband/acc100: remove logically dead code
Coverity reported dead code for a few error
checks which are indeed not reachable.
Coverity issue: 363451, 363454, 363455
--- drivers/baseband/acc100/rte_acc100_pmd.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +0 -9
@@ -2519,9 +2519,6 @@ r++; } -if (unlikely (desc ==NULL )) -return current_enqueued_cbs; -#ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left (mbuf_total_left) !=0 )return -EINVAL ;
@@ -3076,9 +3073,6 @@ r++; } -if (unlikely (desc ==NULL )) -return current_enqueued_cbs; -#ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left (mbuf_total_left) !=0 )return -EINVAL ;
@@ -3181,9 +3175,6 @@ r++; } -if (unlikely (desc ==NULL )) -return current_enqueued_cbs; -#ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left (mbuf_total_left) !=0 )return -EINVAL ;
Signature · 1 line
1.8.3.1
Quoted 6 lines · Nicolas Chautru
Coverity reported dead code for a few error
checks which are indeed not reachable.Coverity issue: 363451, 363454, 363455
Signed-off-by Nicolas Chautru <[email protected]>
This change looks fine.
Should remove the 'Coverity issue: ... ' from the log.
Quoted 38 lines
--- drivers/baseband/acc100/rte_acc100_pmd.c | 9 --------- 1 file changed, 9 deletions(-)drivers/baseband/acc100/rte_acc100_pmd.c +0
-9@@ -2519,9 +2519,6 @@ r++; } -if (unlikely (desc ==NULL )) -return current_enqueued_cbs; -#ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left (mbuf_total_left) !=0 )return -EINVAL ;@@ -3076,9 +3073,6 @@ r++; } -if (unlikely (desc ==NULL )) -return current_enqueued_cbs; -#ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left (mbuf_total_left) !=0 )return -EINVAL ;@@ -3181,9 +3175,6 @@ r++; } -if (unlikely (desc ==NULL )) -return current_enqueued_cbs; -#ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left (mbuf_total_left) !=0 )return -EINVAL ;
Quoted 18 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Tom Rix
Sent: Wednesday, October 21, 2020 2:58 PM
To: Chautru, Nicolas <[email protected]>; [email protected]; [email protected]
Cc: Richardson, Bruce <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] baseband/acc100: remove logically dead codeQuoted 5 lines · Nicolas Chautru
Coverity reported dead code for a few error checks which are indeed not reachable.
Coverity issue: 363451, 363454, 363455
Quoted 7 lines
Quoted 1 line
Signed-off-by Nicolas Chautru <[email protected]>This change looks fine.
Should remove the 'Coverity issue: ... ' from the log.
Reviewed-by Tom Rix <[email protected]>
It should stay. That is the convention we use:
git log | grep "Coverity issue"
Akhil Goyal
AppliedQuoted 7 lines · Nicolas Chautru
Quoted 5 lines
Coverity reported dead code for a few error
checks which are indeed not reachable.Coverity issue: 363451, 363454, 363455
Quoted 8 lines
Quoted 1 line
Signed-off-by Nicolas Chautru <[email protected]>This change looks fine.
Should remove the 'Coverity issue: ... ' from the log.
Reviewed-by Tom Rix <[email protected]>
Applied to dpdk-next-crypto
Thanks.