tun: Eliminate sparse signedness warning
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Mon, 5 Jan 2009 01:14:46 +0000 (17:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jan 2009 01:14:46 +0000 (17:14 -0800)
register_pernet_gen_device() expects 'int*', found via sparse.

 CHECK   drivers/net/tun.c
 drivers/net/tun.c:1245:36: warning: incorrect type in argument 1 (different signedness)
 drivers/net/tun.c:1245:36:    expected int *id
 drivers/net/tun.c:1245:36:    got unsigned int static [toplevel] *<noident>

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c

index 69f9a0ec764d3e8503cb46c1d3d4fa380e5b87f3..d7b81e4fdd5631c0c537cd971cad3bebb72bb38d 100644 (file)
@@ -213,7 +213,7 @@ static int check_filter(struct tap_filter *filter, const struct sk_buff *skb)
 
 /* Network device part of the driver */
 
-static unsigned int tun_net_id;
+static int tun_net_id;
 struct tun_net {
        struct list_head dev_list;
 };