* Re: [PATCH] nvmet: fix ptr_ret.cocci warnings [not found] ` <20190429175734.GA20932@lkp-kbuild08> @ 2019-04-29 22:14 ` Chaitanya Kulkarni [not found] ` <CGME20190429221427epcas3p2ff4fc6e3b8da00a34cf5766b6f2754f5@epcms2p4> 1 sibling, 0 replies; 2+ messages in thread From: Chaitanya Kulkarni @ 2019-04-29 22:14 UTC (permalink / raw) To: Minwoo Im; +Cc: Christoph Hellwig, Sagi Grimberg, linux-nvme, linux-kernel Hi Minwoo, Can you please resend this patch with the suggested change ? On 04/29/2019 10:58 AM, kbuild test robot wrote: > From: kbuild test robot <lkp@intel.com> > > drivers/nvme/target/discovery.c:375:1-3: WARNING: PTR_ERR_OR_ZERO can be used > > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Fixes: 6b7e631b927c ("nvmet: return a specified error it subsys_alloc fails") > CC: Minwoo Im <minwoo.im.dev@gmail.com> > Signed-off-by: kbuild test robot <lkp@intel.com> > --- > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 3d17a1de96a233cf89bfbb5a77ebb1a05c420681 > commit: 6b7e631b927ca1266b2695307ab71ed7764af75e [9188/10649] nvmet: return a specified error it subsys_alloc fails > > discovery.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > --- a/drivers/nvme/target/discovery.c > +++ b/drivers/nvme/target/discovery.c > @@ -372,9 +372,7 @@ int __init nvmet_init_discovery(void) > { > nvmet_disc_subsys = > nvmet_subsys_alloc(NVME_DISC_SUBSYS_NAME, NVME_NQN_DISC); > - if (IS_ERR(nvmet_disc_subsys)) > - return PTR_ERR(nvmet_disc_subsys); > - return 0; > + return PTR_ERR_OR_ZERO(nvmet_disc_subsys); > } > > void nvmet_exit_discovery(void) > ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <CGME20190429221427epcas3p2ff4fc6e3b8da00a34cf5766b6f2754f5@epcms2p4>]
* RE: Re: [PATCH] nvmet: fix ptr_ret.cocci warnings [not found] ` <CGME20190429221427epcas3p2ff4fc6e3b8da00a34cf5766b6f2754f5@epcms2p4> @ 2019-04-29 22:40 ` Minwoo Im 0 siblings, 0 replies; 2+ messages in thread From: Minwoo Im @ 2019-04-29 22:40 UTC (permalink / raw) To: Chaitanya Kulkarni, Minwoo Im, Minwoo Im Cc: linux-kernel, Christoph Hellwig, linux-nvme, Sagi Grimberg Sure, I will. Thanks, > -----Original Message----- > From: Linux-nvme [mailto:linux-nvme-bounces@lists.infradead.org] On > Behalf Of Chaitanya Kulkarni > Sent: Tuesday, April 30, 2019 7:14 AM > To: Minwoo Im > Cc: linux-kernel@vger.kernel.org; Christoph Hellwig; linux- > nvme@lists.infradead.org; Sagi Grimberg > Subject: Re: [PATCH] nvmet: fix ptr_ret.cocci warnings > > Hi Minwoo, > > Can you please resend this patch with the suggested change ? > > On 04/29/2019 10:58 AM, kbuild test robot wrote: > > From: kbuild test robot <lkp@intel.com> > > > > drivers/nvme/target/discovery.c:375:1-3: WARNING: PTR_ERR_OR_ZERO > can be used > > > > > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > > > Fixes: 6b7e631b927c ("nvmet: return a specified error it subsys_alloc fails") > > CC: Minwoo Im <minwoo.im.dev@gmail.com> > > Signed-off-by: kbuild test robot <lkp@intel.com> > > --- > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > master > > head: 3d17a1de96a233cf89bfbb5a77ebb1a05c420681 > > commit: 6b7e631b927ca1266b2695307ab71ed7764af75e [9188/10649] > nvmet: return a specified error it subsys_alloc fails > > > > discovery.c | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > --- a/drivers/nvme/target/discovery.c > > +++ b/drivers/nvme/target/discovery.c > > @@ -372,9 +372,7 @@ int __init nvmet_init_discovery(void) > > { > > nvmet_disc_subsys = > > nvmet_subsys_alloc(NVME_DISC_SUBSYS_NAME, > NVME_NQN_DISC); > > - if (IS_ERR(nvmet_disc_subsys)) > > - return PTR_ERR(nvmet_disc_subsys); > > - return 0; > > + return PTR_ERR_OR_ZERO(nvmet_disc_subsys); > > } > > > > void nvmet_exit_discovery(void) > > > > > _______________________________________________ > Linux-nvme mailing list > Linux-nvme@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-nvme ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-29 22:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <201904300131.gB7Qr2Ik%lkp@intel.com>
[not found] ` <20190429175734.GA20932@lkp-kbuild08>
2019-04-29 22:14 ` [PATCH] nvmet: fix ptr_ret.cocci warnings Chaitanya Kulkarni
[not found] ` <CGME20190429221427epcas3p2ff4fc6e3b8da00a34cf5766b6f2754f5@epcms2p4>
2019-04-29 22:40 ` Minwoo Im
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®