netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: tklauser@distanz.ch
Cc: kaber@trash.net, netdev@vger.kernel.org
Subject: Re: [PATCH] vlan: Remove unnecessary comparison of unsigned against 0
Date: Tue, 18 Oct 2016 10:25:47 -0400 (EDT)	[thread overview]
Message-ID: <20161018.102547.1252630571952098432.davem@davemloft.net> (raw)
In-Reply-To: <20161018064417.26379-1-tklauser@distanz.ch>

From: Tobias Klauser <tklauser@distanz.ch>
Date: Tue, 18 Oct 2016 08:44:17 +0200

> args.u.name_type is of type unsigned int and is always >= 0.
> 
> This fixes the following GCC warning:
> 
>   net/8021q/vlan.c: In function ‘vlan_ioctl_handler’:
>   net/8021q/vlan.c:574:14: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

Applied to net-next, thanks.

      reply	other threads:[~2016-10-18 14:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-18  6:44 [PATCH] vlan: Remove unnecessary comparison of unsigned against 0 Tobias Klauser
2016-10-18 14:25 ` David Miller [this message]

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=20161018.102547.1252630571952098432.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=kaber@trash.net \
    --cc=netdev@vger.kernel.org \
    --cc=tklauser@distanz.ch \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).