All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Zhi Yong Wu <zwu.kernel@gmail.com>, netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Subject: Re: [net-next PATCH 3/6] macvtap: remove the dead branch
Date: Thu, 05 Dec 2013 22:08:20 -0800	[thread overview]
Message-ID: <52A169D4.4060209@roeck-us.net> (raw)
In-Reply-To: <1386282527-14094-4-git-send-email-zwu.kernel@gmail.com>

On 12/05/2013 02:28 PM, Zhi Yong Wu wrote:
> From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
>
> Signed-off-by: Zhi Yong Wu <wuzhy@linux.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.

Guenter


  reply	other threads:[~2013-12-06  6:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-05 22:28 [net-next PATCH 0/6] some cleanups Zhi Yong Wu
2013-12-05 22:28 ` [net-next PATCH 1/6] vhost: remove the dead branch Zhi Yong Wu
2013-12-05 22:28 ` [net-next PATCH 2/6] vhost: adjust vhost_dev_init() to be void Zhi Yong Wu
2013-12-05 22:28 ` [net-next PATCH 3/6] macvtap: remove the dead branch Zhi Yong Wu
2013-12-06  6:08   ` Guenter Roeck [this message]
2013-12-06  6:11     ` Zhi Yong Wu
2013-12-06 16:46     ` David Miller
2013-12-06 17:29       ` Guenter Roeck
2013-12-05 22:28 ` [net-next PATCH 4/6] macvtap: adjust macvtap_skb_to_vnet_hdr() to be void Zhi Yong Wu
2013-12-05 22:28 ` [net-next PATCH 5/6] macvtap: update file current position Zhi Yong Wu
2013-12-05 22:28 ` [net-next PATCH 6/6] macvtap: remove unused paramter in macvtap_do_read() Zhi Yong Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52A169D4.4060209@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=wuzhy@linux.vnet.ibm.com \
    --cc=zwu.kernel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.