Re: [PATCH] scsi: snici: Remove dead code in snic_dr_clean_pending_req

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

 



On 2023/10/19 18:09, Dan Carpenter wrote:
On Thu, Oct 19, 2023 at 04:30:27PM +0800, Su Hui wrote:
Value stored to 'ret' is never read, remove it to save space.

Signed-off-by: Su Hui <suhui@xxxxxxxxxxxx>
Could you do this a bit more thouroughly and remove all the
"ret = FAILED;" and "ret = 0;" assignments.  Just "return FAILED;"
and "return 0;" directly.
Yes, this is better, thanks for your advice.
I will send v2 later.

Su Hui





[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