From: Doug Ledford <dledford@redhat.com>
To: Christophe JAILLET
<christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>,
sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
Ram.Amrani-74tsMCuadCbQT0dZR+AlfA@public.gmane.org,
Michal.Kalderon-74tsMCuadCbQT0dZR+AlfA@public.gmane.org,
rajesh.borundia-74tsMCuadCbQT0dZR+AlfA@public.gmane.org,
weiyongjun1-hv44wF8Li93QT0dZR+AlfA@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] RDMA/qedr: Fix some error handling
Date: Sun, 19 Feb 2017 13:59:39 +0000 [thread overview]
Message-ID: <1487512779.86943.118.camel@redhat.com> (raw)
In-Reply-To: <20170218112815.9329-1-christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 820 bytes --]
On Sat, 2017-02-18 at 12:28 +0100, Christophe JAILLET wrote:
> 'qedr_alloc_pbl_tbl()' can not return NULL.
>
> In qedr_init_user_queue():
> - simplify the test for the return value, no need to test for NULL
> - propagate the error pointer if needed, otherwise 0 (success) is
> returned.
> This is spurious.
>
> In init_mr_info():
> - test the return value with IS_ERR
> - propagate the error pointer if needed instead of an exlictit
> -ENOMEM.
> This is a no-op as the only error pointer that we can have here is
> already -ENOMEM
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Thanks, applied.
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Christophe JAILLET
<christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>,
sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
Ram.Amrani-74tsMCuadCbQT0dZR+AlfA@public.gmane.org,
Michal.Kalderon-74tsMCuadCbQT0dZR+AlfA@public.gmane.org,
rajesh.borundia-74tsMCuadCbQT0dZR+AlfA@public.gmane.org,
weiyongjun1-hv44wF8Li93QT0dZR+AlfA@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] RDMA/qedr: Fix some error handling
Date: Sun, 19 Feb 2017 08:59:39 -0500 [thread overview]
Message-ID: <1487512779.86943.118.camel@redhat.com> (raw)
In-Reply-To: <20170218112815.9329-1-christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 878 bytes --]
On Sat, 2017-02-18 at 12:28 +0100, Christophe JAILLET wrote:
> 'qedr_alloc_pbl_tbl()' can not return NULL.
>
> In qedr_init_user_queue():
> - simplify the test for the return value, no need to test for NULL
> - propagate the error pointer if needed, otherwise 0 (success) is
> returned.
> This is spurious.
>
> In init_mr_info():
> - test the return value with IS_ERR
> - propagate the error pointer if needed instead of an exlictit
> -ENOMEM.
> This is a no-op as the only error pointer that we can have here is
> already -ENOMEM
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>
Thanks, applied.
--
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Doug Ledford <dledford@redhat.com>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
sean.hefty@intel.com, hal.rosenstock@gmail.com,
Ram.Amrani@Cavium.com, Michal.Kalderon@Cavium.com,
rajesh.borundia@Cavium.com, weiyongjun1@huawei.com
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] RDMA/qedr: Fix some error handling
Date: Sun, 19 Feb 2017 08:59:39 -0500 [thread overview]
Message-ID: <1487512779.86943.118.camel@redhat.com> (raw)
In-Reply-To: <20170218112815.9329-1-christophe.jaillet@wanadoo.fr>
[-- Attachment #1: Type: text/plain, Size: 820 bytes --]
On Sat, 2017-02-18 at 12:28 +0100, Christophe JAILLET wrote:
> 'qedr_alloc_pbl_tbl()' can not return NULL.
>
> In qedr_init_user_queue():
> - simplify the test for the return value, no need to test for NULL
> - propagate the error pointer if needed, otherwise 0 (success) is
> returned.
> This is spurious.
>
> In init_mr_info():
> - test the return value with IS_ERR
> - propagate the error pointer if needed instead of an exlictit
> -ENOMEM.
> This is a no-op as the only error pointer that we can have here is
> already -ENOMEM
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Thanks, applied.
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2017-02-19 13:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-18 11:28 [PATCH] RDMA/qedr: Fix some error handling Christophe JAILLET
2017-02-18 11:28 ` Christophe JAILLET
2017-02-18 11:28 ` Christophe JAILLET
2017-02-19 11:46 ` Amrani, Ram
[not found] ` <20170218112815.9329-1-christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>
2017-02-19 13:59 ` Doug Ledford [this message]
2017-02-19 13:59 ` Doug Ledford
2017-02-19 13:59 ` Doug Ledford
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=1487512779.86943.118.camel@redhat.com \
--to=dledford@redhat.com \
--cc=Michal.Kalderon-74tsMCuadCbQT0dZR+AlfA@public.gmane.org \
--cc=Ram.Amrani-74tsMCuadCbQT0dZR+AlfA@public.gmane.org \
--cc=christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org \
--cc=hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rajesh.borundia-74tsMCuadCbQT0dZR+AlfA@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=weiyongjun1-hv44wF8Li93QT0dZR+AlfA@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.