From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: Luis de Bethencourt <luisbg@osg.samsung.com>
Cc: linux-kernel@vger.kernel.org, cvubrugier@fastmail.fm,
sagig@mellanox.com, linux-scsi@vger.kernel.org,
target-devel@vger.kernel.org
Subject: Re: [PATCH] iscsi-target: return -ENOMEM instead of -1 in case of failed kmalloc()
Date: Sat, 14 Nov 2015 14:31:13 -0800 [thread overview]
Message-ID: <1447540273.18527.5.camel@haakon3.risingtidesystems.com> (raw)
In-Reply-To: <1445285904-31247-1-git-send-email-luisbg@osg.samsung.com>
Hi Luis,
Apologies for the delayed response.
On Mon, 2015-10-19 at 21:18 +0100, Luis de Bethencourt wrote:
> Smatch complains about returning hard coded error codes, silence this
> warning.
>
> drivers/target/iscsi/iscsi_target_parameters.c:211 iscsi_create_default_params() warn: returning -1 instead of -ENOMEM is sloppy
>
> Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
> ---
>
> Hi,
>
> This doesn't change the functionality. It is just about using the more specific
> errno. And at the same time silencing smatch.
>
> Thanks,
> Luis
>
> drivers/target/iscsi/iscsi_target_parameters.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
Applied to target-pending/queue-fixes.
Thank you,
--nab
next prev parent reply other threads:[~2015-11-14 22:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-19 20:18 Luis de Bethencourt
2015-10-20 11:41 ` Sagi Grimberg
2015-11-14 22:31 ` Nicholas A. Bellinger [this message]
2015-11-15 1:11 ` Luis de Bethencourt
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=1447540273.18527.5.camel@haakon3.risingtidesystems.com \
--to=nab@linux-iscsi.org \
--cc=cvubrugier@fastmail.fm \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=luisbg@osg.samsung.com \
--cc=sagig@mellanox.com \
--cc=target-devel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®