kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] NTB: test: remove a duplicate check
@ 2019-06-19  5:32 Dan Carpenter
  2019-06-19  5:39 ` Logan Gunthorpe
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2019-06-19  5:32 UTC (permalink / raw)
  To: Jon Mason, Logan Gunthorpe
  Cc: Dave Jiang, Allen Hubbe, linux-ntb, linux-kernel, kernel-janitors

We already verified that the "nm->isr_ctx" allocation succeeded so there
is no need to check again here.

Fixes: a6bed7a54165 ("NTB: Introduce NTB MSI Test Client")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
Hey Logan, can pick a patch prefix when you're introducing a new module?
"[PATCH] NTB/test: Introduce NTB MSI Test Client" or whatever.

 drivers/ntb/test/ntb_msi_test.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/ntb/test/ntb_msi_test.c b/drivers/ntb/test/ntb_msi_test.c
index 99d826ed9c34..9ba3c3162cd0 100644
--- a/drivers/ntb/test/ntb_msi_test.c
+++ b/drivers/ntb/test/ntb_msi_test.c
@@ -372,9 +372,6 @@ static int ntb_msit_probe(struct ntb_client *client, struct ntb_dev *ntb)
 	if (ret)
 		goto remove_dbgfs;
 
-	if (!nm->isr_ctx)
-		goto remove_dbgfs;
-
 	ntb_link_enable(ntb, NTB_SPEED_AUTO, NTB_WIDTH_AUTO);
 
 	return 0;
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] NTB: test: remove a duplicate check
  2019-06-19  5:32 [PATCH] NTB: test: remove a duplicate check Dan Carpenter
@ 2019-06-19  5:39 ` Logan Gunthorpe
  2019-06-19  6:02   ` Dan Carpenter
  0 siblings, 1 reply; 3+ messages in thread
From: Logan Gunthorpe @ 2019-06-19  5:39 UTC (permalink / raw)
  To: Dan Carpenter, Jon Mason
  Cc: Dave Jiang, Allen Hubbe, linux-ntb, linux-kernel, kernel-janitors

,,

On 2019-06-18 11:32 p.m., Dan Carpenter wrote:
> We already verified that the "nm->isr_ctx" allocation succeeded so there
> is no need to check again here.
> 
> Fixes: a6bed7a54165 ("NTB: Introduce NTB MSI Test Client")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Hmm, yup, not sure how that slipped through, must have been a bad rebase
or something. Thanks Dan!

Reviewed-by: Logan Gunthorpe <logang@deltatee.com>

> ---
> Hey Logan, can pick a patch prefix when you're introducing a new module?
> "[PATCH] NTB/test: Introduce NTB MSI Test Client" or whatever.

I don't quite follow you there. NTB doesn't really have a good standard
for prefixes. NTB/test might have made sense.

Logan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] NTB: test: remove a duplicate check
  2019-06-19  5:39 ` Logan Gunthorpe
@ 2019-06-19  6:02   ` Dan Carpenter
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2019-06-19  6:02 UTC (permalink / raw)
  To: Logan Gunthorpe
  Cc: Jon Mason, Dave Jiang, Allen Hubbe, linux-ntb, linux-kernel,
	kernel-janitors

It's not a huge deal obviously but your commit was a6bed7a54165 ("NTB:
Introduce NTB MSI Test Client") but you know that if I had sent a patch
called ("NTB: remove a duplicate check") people would have correctly
complained because the patch prefix is too vague.

What I'm saying is we do this all the time:

[PATCH] NTB: add a new foobazle driver

But it should be:

[PATCH] NTB: foobazle: add a new foobazle driver

Then I can just copy and paste your patch prefix instead of trying
invent one.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-19  6:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19  5:32 [PATCH] NTB: test: remove a duplicate check Dan Carpenter
2019-06-19  5:39 ` Logan Gunthorpe
2019-06-19  6:02   ` Dan Carpenter

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).