net: stmmac: replace unsigned by u32
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 8 Feb 2017 08:31:21 +0000 (09:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2017 20:11:27 +0000 (15:11 -0500)
checkpatch complains about two unsigned without type after.
Since the value return is u32, it is simpler to replace it by u32 instead
of "unsigned int"

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index d1b2e1ec7c6e327005ed580e448393708dbdaf33..7251871eaa327ca7ec11d7aed5af5f8913b769dd 100644 (file)
@@ -187,7 +187,7 @@ static void print_pkt(unsigned char *buf, int len)
 
 static inline u32 stmmac_tx_avail(struct stmmac_priv *priv)
 {
-       unsigned avail;
+       u32 avail;
 
        if (priv->dirty_tx > priv->cur_tx)
                avail = priv->dirty_tx - priv->cur_tx - 1;
@@ -199,7 +199,7 @@ static inline u32 stmmac_tx_avail(struct stmmac_priv *priv)
 
 static inline u32 stmmac_rx_dirty(struct stmmac_priv *priv)
 {
-       unsigned dirty;
+       u32 dirty;
 
        if (priv->dirty_rx <= priv->cur_rx)
                dirty = priv->cur_rx - priv->dirty_rx;