drivers/net/hamradio: fix sparse warnings: fix signedness
authorHannes Eder <hannes@hanneseder.net>
Sat, 14 Feb 2009 11:36:20 +0000 (11:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 01:37:40 +0000 (17:37 -0800)
Fix this sparse warnings:
  drivers/net/hamradio/hdlcdrv.c:274:34: warning: incorrect type in argument 2 (different signedness)
  drivers/net/hamradio/hdlcdrv.c:279:47: warning: incorrect type in argument 2 (different signedness)
  drivers/net/hamradio/hdlcdrv.c:288:39: warning: incorrect type in argument 2 (different signedness)
  drivers/net/hamradio/hdlcdrv.c:300:47: warning: incorrect type in argument 2 (different signedness)

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/hdlcdrv.h

index 0821bac62b83449bfad09dad77eab8b7e244499a..c010b4a785b8f7d5c7142232fdfd85fc412d69d4 100644 (file)
@@ -215,7 +215,7 @@ struct hdlcdrv_state {
 
        struct hdlcdrv_hdlctx {
                struct hdlcdrv_hdlcbuffer hbuf;
-               long in_hdlc_tx;
+               unsigned long in_hdlc_tx;
                /*
                 * 0 = send flags
                 * 1 = send txtail (flags)