[libvirt] [PATCH] util: remove dead assignment
Eric Blake
eblake at redhat.com
Wed May 4 15:30:21 UTC 2011
On 05/03/2011 10:50 PM, Laine Stump wrote:
> On 05/03/2011 04:29 PM, Eric Blake wrote:
>> Clang complained about this, and it was easy enough to fix.
>>
>> * src/util/util.c (virFileOpenAs): Drop dead assignment.
>> ---
>> src/util/util.c | 3 +--
>> 1 files changed, 1 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/util/util.c b/src/util/util.c
>> index 37472bb..9041ab6 100644
>> --- a/src/util/util.c
>> +++ b/src/util/util.c
>> @@ -1523,8 +1523,7 @@ virFileOpenAs(const char *path, int openflags,
>> mode_t mode,
>> if (ret< 0&& errno != EACCES) {
>> ret = -errno;
>> VIR_FORCE_CLOSE(pair[0]);
>> - while ((waitret = waitpid(pid, NULL, 0) == -1)
>> -&& (errno == EINTR));
>> + while (waitpid(pid, NULL, 0) == -1&& errno == EINTR);
>> goto parenterror;
>> } else {
>> fd = ret;
>
> ACK.
Thanks; pushed.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110504/c4e4e00e/attachment-0001.sig>
More information about the libvir-list
mailing list