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: <17542be887f082df63dbe436f1abcac7@208suo.com>
Date:   Mon, 17 Jul 2023 11:53:47 +0800
From:   hanyu001@...suo.com
To:     davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
        pabeni@...hat.com
Cc:     netdev@...r.kernel.org, linux-net-drivers@....com,
        linux-kernel@...r.kernel.org
Subject: [PATCH] falcon: Prefer unsigned int to bare use of unsigned

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@...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;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ