Re: [PATCH] fnic: check pci_map_single() return value

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

 



Hi Johannes,

On 08/12/2015 01:42 PM, Johannes Thumshirn wrote:
> hmmm, how about
> 
> goto free_skb;
>> +	}
>> +
>>  	fnic_queue_rq_desc(rq, skb, pa, len);
>> -	return 0;
>> +err:
> 
> free_skb:
>         kfree_skb(skb);
> 
>> +	return r;
>>  }
> 
> Although the return is near to the error handling, it's preferred to
> have the labels named after the action that is taken there.

Ok, I'll post a V2 of this patch soon, thanks for the review.

Regards,
Maurizio Lombardi
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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