public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: hanyu001@208suo.com
To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com
Cc: netdev@vger.kernel.org, linux-net-drivers@amd.com,
	linux-kernel@vger.kernel.org
Subject: [PATCH] falcon: Prefer unsigned int to bare use of unsigned
Date: Mon, 17 Jul 2023 11:53:47 +0800	[thread overview]
Message-ID: <17542be887f082df63dbe436f1abcac7@208suo.com> (raw)
In-Reply-To: <tencent_17776852D0A5AD5787FB7C0652F0628EE206@qq.com>

This patch fixes the checkpatch.pl error:

./drivers/net/ethernet/sfc/falcon/farch.c:274: WARNING: Prefer 'unsigned 
int' to bare use of 'unsigned':

Signed-off-by: maqimei <2433033762@qq.com>
---
  drivers/net/ethernet/sfc/falcon/farch.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/sfc/falcon/farch.c 
b/drivers/net/ethernet/sfc/falcon/farch.c
index c64623c..643ffe1 100644
--- a/drivers/net/ethernet/sfc/falcon/farch.c
+++ b/drivers/net/ethernet/sfc/falcon/farch.c
@@ -271,7 +271,7 @@ static int ef4_alloc_special_buffer(struct ef4_nic 
*efx,
  /* This writes to the TX_DESC_WPTR; write pointer for TX descriptor 
ring */
  static inline void ef4_farch_notify_tx_desc(struct ef4_tx_queue 
*tx_queue)
  {
-    unsigned write_ptr;
+    unsigned int write_ptr;
      ef4_dword_t reg;

      write_ptr = tx_queue->write_count & tx_queue->ptr_mask;

           reply	other threads:[~2023-07-17  3:53 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <tencent_17776852D0A5AD5787FB7C0652F0628EE206@qq.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17542be887f082df63dbe436f1abcac7@208suo.com \
    --to=hanyu001@208suo.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net-drivers@amd.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox