Re: [PATCH 1/3] add functions: load 8021q module, create/destroy vlan-dev

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

 



[...]

>>> +
>>> +static int
>>> +controlVlanDev(unsigned int cmd,
>>> +               const char *ifname, unsigned int vlanid)
>>
>> One line per argument.
> 
> OK
> 
>>
>>> +{
>>
>>     int ret = -1;
>>
> 
> Why need ret?
> 

I was going to suggest changing the code to use a cleanup: label like
many other functions, but then figured it wasn't necessary, but forgot
to go back and remove this line.

John

>>> +    int fd;
>>> +    struct vlan_ioctl_args if_request;
>>> +    memset(&if_request, 0, sizeof(struct vlan_ioctl_args));
>>> +    if_request.cmd = cmd;
>>> +

[...]

--
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]

  Powered by Linux