From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Kevin Traynor <ktraynor@redhat.com>,
Maxime Gouin <maxime.gouin@6wind.com>, <dev@dpdk.org>
Cc: Heinrich Kuhn <heinrich.kuhn@corigine.com>,
Alejandro Lucero <alejandro.lucero@netronome.com>,
Olivier Matz <olivier.matz@6wind.com>
Subject: Re: [PATCH 2/2] net/nfp: remove useless range checks
Date: Fri, 21 Jan 2022 14:39:31 +0000 [thread overview]
Message-ID: <2ef45d11-68e5-e178-70f4-3b09f51f86a4@intel.com> (raw)
In-Reply-To: <a7e725d8-fa0e-86fb-fc14-bfca22e03f3d@redhat.com>
On 1/11/2022 2:54 PM, Kevin Traynor wrote:
> On 05/01/2022 10:32, Maxime Gouin wrote:
>> reported by code analysis tool C++test (version 10.4):
>>
Hi Maxime,
Can you please give some information on this tool?
Thanks,
ferruh
>>> /build/dpdk-20.11/drivers/net/nfp/nfpcore/nfp_target.h
>>> 375 Condition "island < 1" is always evaluated to false
>>> 415 Condition "island < 1" is always evaluated to false
>>> 547 Condition "target < 0" is always evaluated to false
>>
>> All of these conditions have the same error. They call
>> NFP_CPP_ID_ISLAND_of or NFP_CPP_ID_TARGET_of which return a uint8_t and
>> put the result in "island" or "target" which are integers. These variables
>> can only contain values between 0 and 255.
>>
>> Fixes: c7e9729da6b5 ("net/nfp: support CPP")
>>
>
> Cc: stable@dpdk.org
>
>> Signed-off-by: Maxime Gouin <maxime.gouin@6wind.com>
>> Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
>> ---
>
> Acked-by: Kevin Traynor <ktraynor@redhat.com>
>
For series,
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Series applied to dpdk-next-net/main, thanks.
next prev parent reply other threads:[~2022-01-21 14:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-05 10:32 [PATCH 1/2] net/nfp: remove duplicated check when setting MAC address Maxime Gouin
2022-01-05 10:32 ` [PATCH 2/2] net/nfp: remove useless range checks Maxime Gouin
2022-01-11 14:54 ` Kevin Traynor
2022-01-21 14:39 ` Ferruh Yigit [this message]
2022-01-11 14:46 ` [PATCH 1/2] net/nfp: remove duplicated check when setting MAC address Kevin Traynor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2ef45d11-68e5-e178-70f4-3b09f51f86a4@intel.com \
--to=ferruh.yigit@intel.com \
--cc=alejandro.lucero@netronome.com \
--cc=dev@dpdk.org \
--cc=heinrich.kuhn@corigine.com \
--cc=ktraynor@redhat.com \
--cc=maxime.gouin@6wind.com \
--cc=olivier.matz@6wind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).