linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] scsi: aic7xxx: Remove null pointer checks before kfree()
@ 2020-04-05 20:02 Markus Elfring
  2020-04-06  1:14 ` Qiujun Huang
  2020-04-07 15:54 ` Alex Dewar
  0 siblings, 2 replies; 6+ messages in thread
From: Markus Elfring @ 2020-04-05 20:02 UTC (permalink / raw)
  To: Qiujun Huang, linux-scsi
  Cc: linux-kernel, Alex Dewar, Hannes Reinecke, James E. J. Bottomley,
	Martin K. Petersen

> NULL check before kfree is unnecessary so remove it.

I hope that you would like to take another update suggestion into account
(besides a typo correction for your commit message).
https://lore.kernel.org/patchwork/patch/1220189/
https://lore.kernel.org/linux-scsi/20200403164712.49579-1-alex.dewar@gmx.co.uk/

Do you find a previous update suggestion like “SCSI-aic7...: Delete unnecessary
checks before the function call "kfree"” also interesting?
https://lore.kernel.org/linux-scsi/54D3E057.9030600@users.sourceforge.net/
https://lore.kernel.org/patchwork/patch/540593/
https://lkml.org/lkml/2015/2/5/650

Regards,
Markus

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

* Re: [PATCH] scsi: aic7xxx: Remove null pointer checks before kfree()
  2020-04-05 20:02 [PATCH] scsi: aic7xxx: Remove null pointer checks before kfree() Markus Elfring
@ 2020-04-06  1:14 ` Qiujun Huang
  2020-04-07 15:54 ` Alex Dewar
  1 sibling, 0 replies; 6+ messages in thread
From: Qiujun Huang @ 2020-04-06  1:14 UTC (permalink / raw)
  To: Markus Elfring
  Cc: linux-scsi, LKML, Alex Dewar, Hannes Reinecke,
	James E. J. Bottomley, Martin K. Petersen

Sorry about nnnnoise, please just ignore it.

On Mon, Apr 6, 2020 at 4:02 AM Markus Elfring <Markus.Elfring@web.de> wrote:
>
> > NULL check before kfree is unnecessary so remove it.
>
> I hope that you would like to take another update suggestion into account
> (besides a typo correction for your commit message).
> https://lore.kernel.org/patchwork/patch/1220189/
> https://lore.kernel.org/linux-scsi/20200403164712.49579-1-alex.dewar@gmx.co.uk/
>
> Do you find a previous update suggestion like “SCSI-aic7...: Delete unnecessary
> checks before the function call "kfree"” also interesting?
> https://lore.kernel.org/linux-scsi/54D3E057.9030600@users.sourceforge.net/
> https://lore.kernel.org/patchwork/patch/540593/
> https://lkml.org/lkml/2015/2/5/650
>
> Regards,
> Markus

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

* Re: [PATCH] scsi: aic7xxx: Remove null pointer checks before kfree()
  2020-04-05 20:02 [PATCH] scsi: aic7xxx: Remove null pointer checks before kfree() Markus Elfring
  2020-04-06  1:14 ` Qiujun Huang
@ 2020-04-07 15:54 ` Alex Dewar
  2020-04-07 16:32   ` Markus Elfring
  1 sibling, 1 reply; 6+ messages in thread
From: Alex Dewar @ 2020-04-07 15:54 UTC (permalink / raw)
  To: Markus Elfring
  Cc: Qiujun Huang, linux-scsi, linux-kernel, Hannes Reinecke,
	James E. J. Bottomley, Martin K. Petersen

Markus,

On Sun, Apr 05, 2020 at 10:02:47PM +0200, Markus Elfring wrote:
> > NULL check before kfree is unnecessary so remove it.
>
> I hope that you would like to take another update suggestion into account
> (besides a typo correction for your commit message).
> https://lore.kernel.org/patchwork/patch/1220189/
> https://lore.kernel.org/linux-scsi/20200403164712.49579-1-alex.dewar@gmx.co.uk/

I'm not sure I understand the relevance. Are you saying I should
reference this other patch?

>
> Do you find a previous update suggestion like “SCSI-aic7...: Delete unnecessary
> checks before the function call "kfree"” also interesting?
> https://lore.kernel.org/linux-scsi/54D3E057.9030600@users.sourceforge.net/
> https://lore.kernel.org/patchwork/patch/540593/
> https://lkml.org/lkml/2015/2/5/650
>

Thanks for the reference. I'll mention it in the commit if I do a v2.

Best,
Alex

> Regards,
> Markus

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

* Re: scsi: aic7xxx: Remove null pointer checks before kfree()
  2020-04-07 15:54 ` Alex Dewar
@ 2020-04-07 16:32   ` Markus Elfring
  2020-04-09 11:48     ` Alex Dewar
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Elfring @ 2020-04-07 16:32 UTC (permalink / raw)
  To: Alex Dewar, linux-scsi
  Cc: linux-kernel, Hannes Reinecke, James E. J. Bottomley,
	Martin K. Petersen, Qiujun Huang

>> I hope that you would like to take another update suggestion into account
>> (besides a typo correction for your commit message).
>> https://lore.kernel.org/patchwork/patch/1220189/
>> https://lore.kernel.org/linux-scsi/20200403164712.49579-1-alex.dewar@gmx.co.uk/
>
> I'm not sure I understand the relevance.

I pointed your patch out for another contributor.


> Are you saying I should reference this other patch?

I suggest to take another look at the development history for presented
patches according to a known source code search pattern.


> Thanks for the reference. I'll mention it in the commit if I do a v2.

I am curious under which circumstances the affected source files
will actually be improved in ways which were suggested a few times.

Regards,
Markus

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

* Re: scsi: aic7xxx: Remove null pointer checks before kfree()
  2020-04-07 16:32   ` Markus Elfring
@ 2020-04-09 11:48     ` Alex Dewar
  2020-04-09 14:27       ` Markus Elfring
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Dewar @ 2020-04-09 11:48 UTC (permalink / raw)
  To: Markus Elfring
  Cc: linux-scsi, linux-kernel, Hannes Reinecke, James E. J. Bottomley,
	Martin K. Petersen, Qiujun Huang

On Tue, Apr 07, 2020 at 06:32:19PM +0200, Markus Elfring wrote:
> >> I hope that you would like to take another update suggestion into account
> >> (besides a typo correction for your commit message).
> >> https://lore.kernel.org/patchwork/patch/1220189/
> >> https://lore.kernel.org/linux-scsi/20200403164712.49579-1-alex.dewar@gmx.co.uk/
> >
> > I'm not sure I understand the relevance.
>
> I pointed your patch out for another contributor.
>
>
> > Are you saying I should reference this other patch?
>
> I suggest to take another look at the development history for presented
> patches according to a known source code search pattern.

Ok, cool. How should I go about that?

The thing is that this seems like an obvious improvement (albeit not a
terribly critical one). It reduces SLoC and removes an unnecessary
check. AFAICS the patch you mention wasn't rejected on technical
grounds, but simply wasn't picked up. If there is a reason why this
change isn't warranted then I'd like to know why so I can send better
patches in future :-)

>
>
> > Thanks for the reference. I'll mention it in the commit if I do a v2.
>
> I am curious under which circumstances the affected source files
> will actually be improved in ways which were suggested a few times.
>
> Regards,
> Markus

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

* Re: scsi: aic7xxx: Remove null pointer checks before kfree()
  2020-04-09 11:48     ` Alex Dewar
@ 2020-04-09 14:27       ` Markus Elfring
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Elfring @ 2020-04-09 14:27 UTC (permalink / raw)
  To: Alex Dewar, linux-scsi
  Cc: linux-kernel, Hannes Reinecke, James E. J. Bottomley,
	Martin K. Petersen, Qiujun Huang

> The thing is that this seems like an obvious improvement

Such a view can be promising.


> (albeit not a terribly critical one).

The prioritisation influences change integration considerably.


> It reduces SLoC and removes an unnecessary check.

I hope that such goals will be reconsidered also for this software module.


> AFAICS the patch you mention wasn't rejected on technical grounds,
> but simply wasn't picked up.

The usual factors were involved for free software development.


> If there is a reason why this change isn't warranted
> then I'd like to know why so I can send better patches in future :-)

I hope that also your change interests can increase chances for
software evolution in desired directions.
With which delays will specific improvements be achieved?

Regards,
Markus

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

end of thread, other threads:[~2020-04-09 14:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-05 20:02 [PATCH] scsi: aic7xxx: Remove null pointer checks before kfree() Markus Elfring
2020-04-06  1:14 ` Qiujun Huang
2020-04-07 15:54 ` Alex Dewar
2020-04-07 16:32   ` Markus Elfring
2020-04-09 11:48     ` Alex Dewar
2020-04-09 14:27       ` Markus Elfring

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