Re: [PATCH v2] virtio_scsi: remove unnecessary condition check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 29, 2018 at 10:04:04PM +0800, Chengguang Xu wrote:
> kmem_cache_destroy()/mempool_destroy() can handle NULL pointer
> correctly, so there is no need to check NULL pointer before calling
> kmem_cache_destroy()/mempool_destroy(). Meanwhile, because this
> is in the error case of init function, also remove unnecessary
> NULL assignment.

Looks good.

Reviewed-by: Greg Edwards <gedwards@xxxxxxx>



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux