[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEH94LjR2eVyut-2tXQ647Bi48HGJEpOULKtrcOeeLJGDh-Ttw@mail.gmail.com>
Date: Fri, 6 Dec 2013 14:11:35 +0800
From: Zhi Yong Wu <zwu.kernel@...il.com>
To: Guenter Roeck <linux@...ck-us.net>
Cc: netdev@...r.kernel.org,
linux-kernel mlist <linux-kernel@...r.kernel.org>,
Zhi Yong Wu <wuzhy@...ux.vnet.ibm.com>
Subject: Re: [net-next PATCH 3/6] macvtap: remove the dead branch
On Fri, Dec 6, 2013 at 2:08 PM, Guenter Roeck <linux@...ck-us.net> wrote:
> On 12/05/2013 02:28 PM, Zhi Yong Wu wrote:
>>
>> From: Zhi Yong Wu <wuzhy@...ux.vnet.ibm.com>
>>
>> Signed-off-by: Zhi Yong Wu <wuzhy@...ux.vnet.ibm.com>
>> ---
>> drivers/net/macvtap.c | 2 --
>> 1 files changed, 0 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c
>> index 9093004..d271fb4 100644
>> --- a/drivers/net/macvtap.c
>> +++ b/drivers/net/macvtap.c
>> @@ -779,8 +779,6 @@ static ssize_t macvtap_put_user(struct macvtap_queue
>> *q,
>> return -EINVAL;
>>
>> ret = macvtap_skb_to_vnet_hdr(skb, &vnet_hdr);
>> - if (ret)
>> - return ret;
>>
> Assigning the function's return value to ret just to ignore it seems odd.
>
> Might make sense to change the function type to void.
Yes, this is done in the next patch of this series.
>
> Guenter
>
--
Regards,
Zhi Yong Wu
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists