]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[LLC]: Fix compiler warnings introduced by TX window scaling changes.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 17 Nov 2005 23:17:42 +0000 (15:17 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 17 Nov 2005 23:17:42 +0000 (15:17 -0800)
commit381998241fd1fc635596f4e8ae835f0d64ca1ba2
tree7e480e6ddba0144fc6029adf4a66fa00f72019bd
parent2fce76afdb067fa3e7f8ee33c9fe366bd65887ea
[LLC]: Fix compiler warnings introduced by TX window scaling changes.

Noticed by Olaf Hering.

The comparisons want a u8 here (the data type on the left-hand branch
is a u8 structure member, and the constant on the right-hand branch is
"~((u8) 128)"), but C turns it into an integer so we get:

net/llc/llc_c_ac.c: In function `llc_conn_ac_inc_npta_value':
net/llc/llc_c_ac.c:998: warning: comparison is always true due to limited range of data type
net/llc/llc_c_ac.c:999: warning: large integer implicitly truncated to unsigned type

Fix this up by explicitly recasting the right-hand branch constant
into a "u8" once more.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/llc/llc_c_ac.c