mirror of https://lore.kernel.org/lkml/
 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-kernel@vger.kernel.org
Subject: [PATCH] myri10ge: Prefer unsigned int to bare use of unsigned
Date: Mon, 17 Jul 2023 10:39:41 +0800	[thread overview]
Message-ID: <3854a4d7352831a6ae3732c0ef356f99@208suo.com> (raw)
In-Reply-To: <tencent_3CB61C1D0FF3B148608B138A6CA1C3414B08@qq.com>

This patch fixes the checkpatch.pl warning:

./drivers/net/ethernet/myricom/myri10ge/myri10ge.c:629: WARNING: Prefer 
'unsigned int' to bare use of 'unsigned'

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

diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c 
b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
index 8de2e5e..71b5f4c 100644
--- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
+++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
@@ -626,7 +626,7 @@ static int myri10ge_load_hotplug_firmware(struct 
myri10ge_priv *mgp, u32 * size)
      vfree(fw_readback);
      if (crc != reread_crc) {
          dev_err(dev, "CRC failed(fw-len=%u), got 0x%x (expect 0x%x)\n",
-            (unsigned)fw->size, reread_crc, crc);
+            (unsigned int)fw->size, reread_crc, crc);
          status = -EIO;
          goto abort_with_fw;
      }

       reply	other threads:[~2023-07-17  2:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tencent_3CB61C1D0FF3B148608B138A6CA1C3414B08@qq.com>
2023-07-17  2:39 ` hanyu001 [this message]
2023-07-17  5:54   ` Leon Romanovsky
     [not found] <tencent_6D5BA78E96792524AFC51045DB50A6203907@qq.com>
2023-07-17  2:27 ` hanyu001

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=3854a4d7352831a6ae3732c0ef356f99@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=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

all inboxes | Powered by JetHome®