[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <38dfe7b6-6d8b-4056-9943-12197c80f4d7@web.de>
Date: Sat, 30 Dec 2023 15:25:11 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: James Bottomley <jejb@...ux.ibm.com>, linux-scsi@...r.kernel.org,
kernel-janitors@...r.kernel.org,
"Martin K. Petersen" <martin.petersen@...cle.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: scsi: ses: Move a label in ses_enclosure_data_process()
>> If you would dare to follow advice from goto chains in a strict way,
>> I imagine that you can tend to stress the attention for more useful
>> data processing a bit more than such a redundant function call.
>
> It's about maintainability and simplicity. Eliminating kfree(NULL)
> doesn't simplify most code,
I find it easy to avoid such a call in the affected and concrete
function implementation.
> it just makes the exit paths more complex
Where is undesirable software complexity here in the repositioning
of the label “simple_populate” before the statement “buf = NULL;”?
Regards,
Markus
Powered by blists - more mailing lists