summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
diff options
context:
space:
mode:
authorLABBE Corentin2017-02-08 09:31:21 +0100
committerDavid S. Miller2017-02-08 21:11:27 +0100
commita6a3e026f0d358904afd3df6b7f952ed8ea5b942 (patch)
tree672a24efe91c8221d9c246f97a209047f46b2bb7 /drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
parentnet: stmmac: remove unused variable in sysfs_display_ring (diff)
downloadkernel-qcow2-linux-a6a3e026f0d358904afd3df6b7f952ed8ea5b942.tar.gz
kernel-qcow2-linux-a6a3e026f0d358904afd3df6b7f952ed8ea5b942.tar.xz
kernel-qcow2-linux-a6a3e026f0d358904afd3df6b7f952ed8ea5b942.zip
net: stmmac: replace unsigned by u32
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index d1b2e1ec7c6e..7251871eaa32 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -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;