aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/moxa
diff options
context:
space:
mode:
authorSZ Lin <sz.lin@moxa.com>2017-07-29 18:42:35 +0800
committerDavid S. Miller <davem@davemloft.net>2017-07-29 14:02:07 -0700
commitd458f4c5fd55ae921ac6f3bf2c169da8d2379b07 (patch)
tree6b1db2b9db1bcbe6c5ea79c49168207a672de7a8 /drivers/net/ethernet/moxa
parentnet: moxa: Remove braces from single-line body (diff)
downloadlinux-dev-d458f4c5fd55ae921ac6f3bf2c169da8d2379b07.tar.xz
linux-dev-d458f4c5fd55ae921ac6f3bf2c169da8d2379b07.zip
net: moxa: Prefer 'unsigned int' to bare use of 'unsigned'
Use 'unsigned int' instead of 'unsigned' This warning is found using checkpatch.pl Signed-off-by: SZ Lin <sz.lin@moxa.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/moxa')
-rw-r--r--drivers/net/ethernet/moxa/moxart_ether.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c
index 105215862949..9997e72103d5 100644
--- a/drivers/net/ethernet/moxa/moxart_ether.c
+++ b/drivers/net/ethernet/moxa/moxart_ether.c
@@ -288,8 +288,8 @@ static int moxart_tx_queue_space(struct net_device *ndev)
static void moxart_tx_finished(struct net_device *ndev)
{
struct moxart_mac_priv_t *priv = netdev_priv(ndev);
- unsigned tx_head = priv->tx_head;
- unsigned tx_tail = priv->tx_tail;
+ unsigned int tx_head = priv->tx_head;
+ unsigned int tx_tail = priv->tx_tail;
while (tx_tail != tx_head) {
dma_unmap_single(&ndev->dev, priv->tx_mapping[tx_tail],