[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <3854a4d7352831a6ae3732c0ef356f99@208suo.com>
Date: Mon, 17 Jul 2023 10:39:41 +0800
From: hanyu001@...suo.com
To: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] myri10ge: Prefer unsigned int to bare use of unsigned
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@...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;
}
Powered by blists - more mailing lists