Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1699288

[PATCH 2/6] net: moxa: Prefer 'unsigned int' to bare use of 'unsigned'

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From SZ Lin <sz.lin@moxa.com>
Newsgroups linux.kernel
Subject [PATCH 2/6] net: moxa: Prefer 'unsigned int' to bare use of 'unsigned'
Date Sat, 29 Jul 2017 12:50:01 +0200
Message-ID <u8xtL-ZD-7@gated-at.bofh.it> (permalink)
References <u8xtL-ZD-1@gated-at.bofh.it>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Vmv/IeZOGAewR8Pw4qzeEhIZdihUc+es94nio8lxg7A=; b=NzJtsqWbGktNf2wHNKE791RgSWHHOWgWitNANJ2IFxkWgafvcsTfBEilfXR3G5NapW bDi7tcIyY1aRoi4E7R/wHqT20GZjqU+PD3gRwWIYuoDWJDhypIG6C4HNp09lAvcp2n0n 9NwhADqRQH311GyhoTq35hKDi2WPikKiA/Rnpc1ALDnJoOI345KvJ/u5qLe7gp2M4FvS oE6rXpoD//ur9rgwWLXtla1Gya2fH3QowQi7f7TPalLFBpLMixbqhh0zgyj40BlUAgy/ AqVyKfgbF6IjrYVYGtYjq3GFHRrrfAESVakuTBN9ATU6w1xeO9JVv9R9HQ/dOYRBVxlN JyQg==
X-Gm-Message-State AIVw112HqBpHMukRVLExorshIiwft4JGoQBMnluT7sssHWLrwf/EQLXu agERdYE9JbivVQ==
X-Received by 10.84.232.11 with SMTP id h11mr10952988plk.126.1501325035220; Sat, 29 Jul 2017 03:43:55 -0700 (PDT)
X-Mailer git-send-email 2.13.3
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 25
Organization linux.* mail to news gateway
X-Original-Cc jarod@redhat.com, jonas.jensen@gmail.com, edumazet@google.com, bhumirks@gmail.com, tklauser@distanz.ch, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, SZ Lin <sz.lin@moxa.com>
X-Original-Date Sat, 29 Jul 2017 18:42:35 +0800
X-Original-Message-ID <20170729104239.14999-3-sz.lin@moxa.com>
X-Original-References <20170729104239.14999-1-sz.lin@moxa.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1699288

Show key headers only | View raw


Use 'unsigned int' instead of 'unsigned'
This warning is found using checkpatch.pl

Signed-off-by: SZ Lin <sz.lin@moxa.com>
---
 drivers/net/ethernet/moxa/moxart_ether.c | 4 ++--
 1 file 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],
-- 
2.13.3

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] net: moxa: Fix style issues SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
  [PATCH 2/6] net: moxa: Prefer 'unsigned int' to bare use of 'unsigned' SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
  [PATCH 3/6] net: moxa: Fix comparison to NULL could be written with ! SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
  [PATCH 5/6] net: moxa: Fix for typo in comment to function moxart_mac_setup_desc_ring() SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
  [PATCH 4/6] net: moxa: Remove extra space after a cast SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
  [PATCH 1/6] net: moxa: Remove braces from single-line body SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
  [PATCH 6/6] net: moxa: Add spaces preferred around that '{+,-}' SZ Lin <sz.lin@moxa.com> - 2017-07-29 12:50 +0200
  Re: [PATCH 0/6] net: moxa: Fix style issues David Miller <davem@davemloft.net> - 2017-07-29 23:10 +0200

csiph-web