public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] falcon: Prefer unsigned int to bare use of unsigned
       [not found] <tencent_17776852D0A5AD5787FB7C0652F0628EE206@qq.com>
@ 2023-07-17  3:53 ` hanyu001
  0 siblings, 0 replies; only message in thread
From: hanyu001 @ 2023-07-17  3:53 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni; +Cc: netdev, linux-net-drivers, linux-kernel

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;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-17  3:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <tencent_17776852D0A5AD5787FB7C0652F0628EE206@qq.com>
2023-07-17  3:53 ` [PATCH] falcon: Prefer unsigned int to bare use of unsigned hanyu001

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox