Re: [PATCH] storage: kill dead stores

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

 



On 07/30/2010 12:20 PM, Matthias Bolte wrote:
>> @@ -75,7 +73,7 @@ virStorageBackendProbeTarget(virStorageVolTargetPtr target,
>>                                                       allocation,
>>                                                       capacity)) < 0) {
>>         close(fd);
>> -        return -1;
>> +        return ret;
> 
> Why do you return ret here? Doing so doesn't harm but it's not
> necessary, virStorageBackendUpdateVolTargetInfoFD returns 0 or -1
> only, in contrast to virStorageBackendVolOpenCheckMode that can return
> 0, -1 or -2.

The alternative was to delete the dead assignment to ret, since we would
be returning -1 ourselves.

> 
> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]