[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <072edd61-9b00-4c63-804f-e98bf271b683@web.de>
Date: Thu, 9 Jul 2020 22:55:46 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Paolo Bonzini <pbonzini@...hat.com>,
Xianting Tian <xianting_tian@....com>,
linux-scsi@...r.kernel.org,
virtualization@...ts.linux-foundation.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
"James E. J. Bottomley" <jejb@...ux.ibm.com>,
Jason Wang <jasowang@...hat.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
"Michael S. Tsirkin" <mst@...hat.com>,
Stefan Hajnoczi <stefanha@...hat.com>
Subject: Re: [PATCH] scsi: virtio_scsi: Remove unnecessary condition checks
>>> + mempool_destroy(virtscsi_cmd_pool);
>>> + virtscsi_cmd_pool = NULL;
>>> + kmem_cache_destroy(virtscsi_cmd_cache);
>>> + virtscsi_cmd_cache = NULL;
>>> return ret;
>>> }
>>
>> How do you think about to add a jump target so that the execution
>> of a few statements can be avoided according to a previous
>> null pointer check?
>
> The point of the patch is precisely to simplify the code,
I propose another bit of fine-tuning there.
> executing a couple more instruction is not an issue.
Can an additional label help here besides a possible identifier renaming?
Regards,
Markus
Powered by blists - more mailing lists