Skip to content

Commit

Permalink
net: moxa: Prefer 'unsigned int' to bare use of 'unsigned'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
SZ Lin authored and davem330 committed Jul 29, 2017
1 parent 68f70d8 commit d458f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/moxa/moxart_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit d458f4c

Please sign in to comment.