linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux-next] PCI: iproc: Remove the unneeded result variable
@ 2022-09-06  7:16 cgel.zte
  2022-09-06 16:54 ` Florian Fainelli
  2022-09-06 21:25 ` Bjorn Helgaas
  0 siblings, 2 replies; 8+ messages in thread
From: cgel.zte @ 2022-09-06  7:16 UTC (permalink / raw)
  To: lpieralisi
  Cc: robh, kw, bhelgaas, rjui, sbranden, bcm-kernel-feedback-list,
	linux-pci, linux-arm-kernel, linux-kernel, ye xingchen,
	Zeal Robot

From: ye xingchen <ye.xingchen@zte.com.cn>

Return the value iproc_pcie_setup_ib() directly instead of storing it in
another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
 drivers/pci/controller/pcie-iproc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/pci/controller/pcie-iproc.c b/drivers/pci/controller/pcie-iproc.c
index 2519201b0e51..bd32929ab265 100644
--- a/drivers/pci/controller/pcie-iproc.c
+++ b/drivers/pci/controller/pcie-iproc.c
@@ -1244,7 +1244,6 @@ static int iproce_pcie_get_msi(struct iproc_pcie *pcie,
 
 static int iproc_pcie_paxb_v2_msi_steer(struct iproc_pcie *pcie, u64 msi_addr)
 {
-	int ret;
 	struct resource_entry entry;
 
 	memset(&entry, 0, sizeof(entry));
@@ -1254,8 +1253,7 @@ static int iproc_pcie_paxb_v2_msi_steer(struct iproc_pcie *pcie, u64 msi_addr)
 	entry.res->start = msi_addr;
 	entry.res->end = msi_addr + SZ_32K - 1;
 
-	ret = iproc_pcie_setup_ib(pcie, &entry, IPROC_PCIE_IB_MAP_IO);
-	return ret;
+	return iproc_pcie_setup_ib(pcie, &entry, IPROC_PCIE_IB_MAP_IO);
 }
 
 static void iproc_pcie_paxc_v2_msi_steer(struct iproc_pcie *pcie, u64 msi_addr,
-- 
2.25.1

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH linux-next] PCI: iproc: Remove the unneeded result variable
  2022-09-06  7:16 [PATCH linux-next] PCI: iproc: Remove the unneeded result variable cgel.zte
@ 2022-09-06 16:54 ` Florian Fainelli
  2022-09-06 21:25 ` Bjorn Helgaas
  1 sibling, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2022-09-06 16:54 UTC (permalink / raw)
  To: cgel.zte, lpieralisi
  Cc: robh, kw, bhelgaas, rjui, sbranden, bcm-kernel-feedback-list,
	linux-pci, linux-arm-kernel, linux-kernel, ye xingchen,
	Zeal Robot



On 9/6/2022 12:16 AM, cgel.zte@gmail.com wrote:
> From: ye xingchen <ye.xingchen@zte.com.cn>
> 
> Return the value iproc_pcie_setup_ib() directly instead of storing it in
> another redundant variable.
> 
> Reported-by: Zeal Robot <zealci@zte.com.cn>
> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH linux-next] PCI: iproc: Remove the unneeded result variable
  2022-09-06  7:16 [PATCH linux-next] PCI: iproc: Remove the unneeded result variable cgel.zte
  2022-09-06 16:54 ` Florian Fainelli
@ 2022-09-06 21:25 ` Bjorn Helgaas
  2022-09-06 21:27   ` Scott Branden
                     ` (2 more replies)
  1 sibling, 3 replies; 8+ messages in thread
From: Bjorn Helgaas @ 2022-09-06 21:25 UTC (permalink / raw)
  To: cgel.zte
  Cc: lpieralisi, robh, kw, bhelgaas, rjui, sbranden,
	bcm-kernel-feedback-list, linux-pci, linux-arm-kernel,
	linux-kernel, ye xingchen, Zeal Robot

On Tue, Sep 06, 2022 at 07:16:36AM +0000, cgel.zte@gmail.com wrote:
> From: ye xingchen <ye.xingchen@zte.com.cn>
> 
> Return the value iproc_pcie_setup_ib() directly instead of storing it in
> another redundant variable.
> 
> Reported-by: Zeal Robot <zealci@zte.com.cn>
> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>

This patch itself is fine, but was posted by cgel.zte@gmail.com, not by
"ye xingchen <ye.xingchen@zte.com.cn>", so it needs another signoff
and full name so the chain is complete.  For more details see:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=v5.18#n363

Bjorn

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH linux-next] PCI: iproc: Remove the unneeded result variable
  2022-09-06 21:25 ` Bjorn Helgaas
@ 2022-09-06 21:27   ` Scott Branden
  2022-09-06 21:37     ` Florian Fainelli
  2022-09-07  3:10   ` [PATCH linux-next] cgel.zte
  2022-09-27 12:07   ` [PATCH linux-next] PCI: iproc: Remove the unneeded result variable Lorenzo Pieralisi
  2 siblings, 1 reply; 8+ messages in thread
From: Scott Branden @ 2022-09-06 21:27 UTC (permalink / raw)
  To: Bjorn Helgaas, cgel.zte
  Cc: lpieralisi, robh, kw, bhelgaas, rjui, sbranden,
	bcm-kernel-feedback-list, linux-pci, linux-arm-kernel,
	linux-kernel, ye xingchen, Zeal Robot


[-- Attachment #1.1: Type: text/plain, Size: 779 bytes --]



On 2022-09-06 14:25, Bjorn Helgaas wrote:
> On Tue, Sep 06, 2022 at 07:16:36AM +0000, cgel.zte@gmail.com wrote:
>> From: ye xingchen <ye.xingchen@zte.com.cn>
>>
>> Return the value iproc_pcie_setup_ib() directly instead of storing it in
>> another redundant variable.
>>
>> Reported-by: Zeal Robot <zealci@zte.com.cn>
>> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
> 
> This patch itself is fine,
Does the patch serve any real use though?

  but was posted by cgel.zte@gmail.com, not by
> "ye xingchen <ye.xingchen@zte.com.cn>", so it needs another signoff
> and full name so the chain is complete.  For more details see:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=v5.18#n363
> 
> Bjorn

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4212 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH linux-next] PCI: iproc: Remove the unneeded result variable
  2022-09-06 21:27   ` Scott Branden
@ 2022-09-06 21:37     ` Florian Fainelli
  0 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2022-09-06 21:37 UTC (permalink / raw)
  To: Scott Branden, Bjorn Helgaas, cgel.zte
  Cc: lpieralisi, robh, kw, bhelgaas, rjui, sbranden,
	bcm-kernel-feedback-list, linux-pci, linux-arm-kernel,
	linux-kernel, ye xingchen, Zeal Robot



On 9/6/2022 2:27 PM, Scott Branden wrote:
> 
> 
> On 2022-09-06 14:25, Bjorn Helgaas wrote:
>> On Tue, Sep 06, 2022 at 07:16:36AM +0000, cgel.zte@gmail.com wrote:
>>> From: ye xingchen <ye.xingchen@zte.com.cn>
>>>
>>> Return the value iproc_pcie_setup_ib() directly instead of storing it in
>>> another redundant variable.
>>>
>>> Reported-by: Zeal Robot <zealci@zte.com.cn>
>>> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
>>
>> This patch itself is fine,
> Does the patch serve any real use though?

Not really though if we don't accept it, then someone else will submit a 
similar patch later, since it is obviously correct, might as well accept it?
-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH linux-next]
  2022-09-06 21:25 ` Bjorn Helgaas
  2022-09-06 21:27   ` Scott Branden
@ 2022-09-07  3:10   ` cgel.zte
  2022-09-27 12:07   ` [PATCH linux-next] PCI: iproc: Remove the unneeded result variable Lorenzo Pieralisi
  2 siblings, 0 replies; 8+ messages in thread
From: cgel.zte @ 2022-09-07  3:10 UTC (permalink / raw)
  To: helgaas
  Cc: bcm-kernel-feedback-list, bhelgaas, cgel.zte, kw,
	linux-arm-kernel, linux-kernel, linux-pci, lpieralisi, rjui,
	robh, sbranden, ye.xingchen, --cc=zealci

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=--subject='Re: [PATCH linux-next] PCI: iproc: Remove the unneeded result variable', Size: 637 bytes --]

In fact,‘cgel.zte@gmail.com’ is our company's public mail address, and ‘ye.xingchen@zte.com.cn’is my personal mail address in the company.‘ZTE’ is the name of company, and ‘CGEL’the name of our project team in company.This patch was posted by ‘ye.xingchen@zte.com.cn’.

For some reason, the patchs needs to be reviewed by the company before it is sent out, and we have to use public mailboxes to send mails, because personal mailboxes are not allowed to send mails.

Because it is the patch I submitted, the mail about the patch will be sent to my personal mailbox through the public mailbox.

 
Thanks,
YE XINGCHEN


[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH linux-next] PCI: iproc: Remove the unneeded result variable
  2022-09-06 21:25 ` Bjorn Helgaas
  2022-09-06 21:27   ` Scott Branden
  2022-09-07  3:10   ` [PATCH linux-next] cgel.zte
@ 2022-09-27 12:07   ` Lorenzo Pieralisi
  2022-09-27 12:38     ` Greg KH
  2 siblings, 1 reply; 8+ messages in thread
From: Lorenzo Pieralisi @ 2022-09-27 12:07 UTC (permalink / raw)
  To: Bjorn Helgaas, gregkh
  Cc: cgel.zte, robh, kw, bhelgaas, rjui, sbranden,
	bcm-kernel-feedback-list, linux-pci, linux-arm-kernel,
	linux-kernel, ye xingchen, Zeal Robot

[+Greg]

On Tue, Sep 06, 2022 at 04:25:20PM -0500, Bjorn Helgaas wrote:
> On Tue, Sep 06, 2022 at 07:16:36AM +0000, cgel.zte@gmail.com wrote:
> > From: ye xingchen <ye.xingchen@zte.com.cn>
> > 
> > Return the value iproc_pcie_setup_ib() directly instead of storing it in
> > another redundant variable.
> > 
> > Reported-by: Zeal Robot <zealci@zte.com.cn>
> > Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
> 
> This patch itself is fine, but was posted by cgel.zte@gmail.com, not by
> "ye xingchen <ye.xingchen@zte.com.cn>", so it needs another signoff
> and full name so the chain is complete.  For more details see:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=v5.18#n363

Greg, Bjorn,

I believe that appending a SoB like this myself is fine:

Signed-off-by: CGEL ZTE <cgel.zte@gmail.com>

It is a SOB already in kernel commit logs - I assume
that's the right thing to do in this case, please
let me know if it isn't and what should we do instead.

Thanks,
Lorenzo

> Bjorn
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH linux-next] PCI: iproc: Remove the unneeded result variable
  2022-09-27 12:07   ` [PATCH linux-next] PCI: iproc: Remove the unneeded result variable Lorenzo Pieralisi
@ 2022-09-27 12:38     ` Greg KH
  0 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2022-09-27 12:38 UTC (permalink / raw)
  To: Lorenzo Pieralisi
  Cc: Bjorn Helgaas, cgel.zte, robh, kw, bhelgaas, rjui, sbranden,
	bcm-kernel-feedback-list, linux-pci, linux-arm-kernel,
	linux-kernel, ye xingchen, Zeal Robot

On Tue, Sep 27, 2022 at 02:07:52PM +0200, Lorenzo Pieralisi wrote:
> [+Greg]
> 
> On Tue, Sep 06, 2022 at 04:25:20PM -0500, Bjorn Helgaas wrote:
> > On Tue, Sep 06, 2022 at 07:16:36AM +0000, cgel.zte@gmail.com wrote:
> > > From: ye xingchen <ye.xingchen@zte.com.cn>
> > > 
> > > Return the value iproc_pcie_setup_ib() directly instead of storing it in
> > > another redundant variable.
> > > 
> > > Reported-by: Zeal Robot <zealci@zte.com.cn>
> > > Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
> > 
> > This patch itself is fine, but was posted by cgel.zte@gmail.com, not by
> > "ye xingchen <ye.xingchen@zte.com.cn>", so it needs another signoff
> > and full name so the chain is complete.  For more details see:
> > 
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=v5.18#n363
> 
> Greg, Bjorn,
> 
> I believe that appending a SoB like this myself is fine:
> 
> Signed-off-by: CGEL ZTE <cgel.zte@gmail.com>
> 
> It is a SOB already in kernel commit logs - I assume
> that's the right thing to do in this case, please
> let me know if it isn't and what should we do instead.

Please just drop all patches submitted by this email address and from
zte.com.cn at this point in time as we are unable to actually determine
that they are coming from the correct developers.

Also there's no feedback from them at all, which means no one is
actually reading the email it is being purported to be sent from, which
means it should be dropped no matter what anyway.

thanks,

greg k-h

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-09-27 12:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06  7:16 [PATCH linux-next] PCI: iproc: Remove the unneeded result variable cgel.zte
2022-09-06 16:54 ` Florian Fainelli
2022-09-06 21:25 ` Bjorn Helgaas
2022-09-06 21:27   ` Scott Branden
2022-09-06 21:37     ` Florian Fainelli
2022-09-07  3:10   ` [PATCH linux-next] cgel.zte
2022-09-27 12:07   ` [PATCH linux-next] PCI: iproc: Remove the unneeded result variable Lorenzo Pieralisi
2022-09-27 12:38     ` Greg KH

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