Re: [PATCH] nvme: remove unnecessary return values

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

 



> On 12 Nov 2020, at 05.11, Chaitanya Kulkarni <Chaitanya.Kulkarni@xxxxxxx> wrote:
> 
> On 11/11/20 12:10, javier@xxxxxxxxxxx wrote:
>> From: Javier González <javier.gonz@xxxxxxxxxxx>
>> 
>> Cleanup unnecessary ret values that are not checked or used in
>> nvme_alloc_ns()
>> 
>> Signed-off-by: Javier González <javier
> 
> The ret value pattern is used to avoid the calls in the if () which is
> 
> not clean based on the comments I had in the past.

Thanks for the comment Chaitanya. I was working around this function and TBH I have never thought about it this way. 

Will add it to the toolbelt then. 




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux