Skip to contentSkip to conversation

falcon: Prefer unsigned int to bare use of unsigned

PATCH New [email protected] 1 participant 1 message Jul 17, 2023 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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':

---
 drivers/net/ethernet/sfc/falcon/farch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/sfc/falcon/farch.c +0 -0
index c64623c..643ffe1 100644
@@ -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;