lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <d5ac1bb7a79b43c8349cf9012671791d@208suo.com>
Date: Mon, 17 Jul 2023 10:27:56 +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

Fix checkpatch warnings:

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

Signed-off-by: maqimei <2433033762@...com>
---
  drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c 
b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
index 65d7057..8de2e5e 100644
--- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
+++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
@@ -569,14 +569,14 @@ static void myri10ge_dummy_rdma(struct 
myri10ge_priv *mgp, int enable)

  static int myri10ge_load_hotplug_firmware(struct myri10ge_priv *mgp, 
u32 * size)
  {
-    unsigned crc, reread_crc;
+    unsigned int crc, reread_crc;
      const struct firmware *fw;
      struct device *dev = &mgp->pdev->dev;
      unsigned char *fw_readback;
      struct mcp_gen_header *hdr;
      size_t hdr_offset;
      int status;
-    unsigned i;
+    unsigned int i;

      if (request_firmware(&fw, mgp->fw_name, dev) < 0) {
          dev_err(dev, "Unable to load %s firmware image via hotplug\n",
@@ -611,7 +611,7 @@ static int myri10ge_load_hotplug_firmware(struct 
myri10ge_priv *mgp, u32 * size)
      for (i = 0; i < fw->size; i += 256) {
          myri10ge_pio_copy(mgp->sram + MYRI10GE_FW_OFFSET + i,
                    fw->data + i,
-                  min(256U, (unsigned)(fw->size - i)));
+                  min(256U, (unsigned int)(fw->size - i)));
          mb();
          readb(mgp->sram);
      }

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ