[PATCH v2] Remove pointless N < 0 checks

Thomas Haller thaller at redhat.com
Tue Aug 26 05:17:06 PDT 2014


On Tue, 2014-08-26 at 14:08 +0200, Thomas Graf wrote:
> route/tc.c:553:9: warning: comparison of unsigned enum expression < 0 is
> always false [-Wtautological-compare]
>               if (id < 0 || id > RTNL_TC_STATS_MAX)
> 
> Signed-off-by: Thomas Graf <tgraf at suug.ch>
> ---
> v2: Add cast to unsigned int as suggested by Thomas Haller


merged to master:
https://github.com/thom311/libnl/commit/7c775184c107b8abd1acd3122c357e0d020376df


Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20140826/30a9523a/attachment.sig>


More information about the libnl mailing list