From: "Kerlin, MarcinX" <marcinx.kerlin@intel.com>
To: "johndale@cisco.com" <johndale@cisco.com>,
"neescoba@cisco.com" <neescoba@cisco.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] unchecked return value in enic driver
Date: Mon, 13 Jun 2016 11:17:59 +0000 [thread overview]
Message-ID: <68D830D942438745AD09BAFA99E33E8125DFA8@IRSMSX102.ger.corp.intel.com> (raw)
Hi John and Nelson,
I have a question regarding Coverity defects:
File: /drivers/net/enic/enic_ethdev.c
Line: 379
CID 13197: Unchecked return value (CHECKED_RETURN)1. check_return: Calling rte_atomic64_cmpset without checking return value (as is done elsewhere 15 out of 17 times)
Can I mark this error as "False Positive" in Coverity Classification ? reason:
1. Function returns a void type so change the return type to int requires changes all drivers
2. rte_atomic64_cmpset is at the end of function so nonsense added a return
What is your opinion?
Regards,
Marcin
next reply other threads:[~2016-06-13 11:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 11:17 Kerlin, MarcinX [this message]
2016-06-20 11:11 ` Kerlin, MarcinX
2016-06-20 18:44 ` John Daley (johndale)
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=68D830D942438745AD09BAFA99E33E8125DFA8@IRSMSX102.ger.corp.intel.com \
--to=marcinx.kerlin@intel.com \
--cc=dev@dpdk.org \
--cc=johndale@cisco.com \
--cc=neescoba@cisco.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).