From: Koen Vandeputte Date: Tue, 7 Aug 2018 08:52:53 +0000 (+0200) Subject: cns3xxx: ethernet: fix signed/unsigned comparison X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=23cdbf2644dcbb3538b5e3341122a83603afeb3f;p=openwrt%2Fstaging%2Fneocturne.git cns3xxx: ethernet: fix signed/unsigned comparison Fixes a compiler warning Signed-off-by: Koen Vandeputte --- diff --git a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c index 07c9dbc048..776a06402f 100644 --- a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c +++ b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c @@ -761,7 +761,7 @@ static int eth_xmit(struct sk_buff *skb, struct net_device *dev) int nr_desc = nr_frags; int index0, index, index_last; int len0; - unsigned int i; + int i; u32 config0; if (pmap == 8)