lkml.org 
[lkml]   [2021]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] scsi: megaraid_mbox: return -ENOMEM on megaraid_init_mbox() allocation failure
On Wed, 20 Oct 2021, James Bottomley wrote:

> >
> > ... and arguably they would be correct.
>
> Well, yes ... that's why I don't want one "fix" that generates a
> cascading sequence of further "fixes".
>

OTOH, if you don't "fix" it, it generates a cascading sequence of
copy-and-paste antipatterns in new code, and poor training data for those
of us reading old code.

Anyway, I agree that the churn would be too risky. But it sure would be
nice if automatic tools were able to perform a program transformation of
this kind at the source level, being that the compiler will surely do it
anyway at a lower level.

There's a lot to be said for source code that reflects the compiler's
understanding of the logic, rather than the human's.

\
 
 \ /
  Last update: 2021-10-21 00:50    [W:0.138 / U:1.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site