mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] qed: Remove unnecessary '0' values from prod
@ 2022-09-13  3:55 Li zeming
  0 siblings, 0 replies; only message in thread
From: Li zeming @ 2022-09-13  3:55 UTC (permalink / raw)
  To: aelior, manishc; +Cc: netdev, linux-kernel, Li zeming

The prod variable is assigned first, it does not need to be initialized.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 include/linux/qed/qed_if.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/qed/qed_if.h b/include/linux/qed/qed_if.h
index 6dc4943d8aec..f542d9946444 100644
--- a/include/linux/qed/qed_if.h
+++ b/include/linux/qed/qed_if.h
@@ -1423,7 +1423,7 @@ struct qed_sb_cnt_info {
 
 static inline u16 qed_sb_update_sb_idx(struct qed_sb_info *sb_info)
 {
-	u32 prod = 0;
+	u32 prod;
 	u16 rc = 0;
 
 	prod = le32_to_cpu(sb_info->sb_virt->prod_index) &
-- 
2.18.2


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

only message in thread, other threads:[~2022-09-13  3:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13  3:55 [PATCH] qed: Remove unnecessary '0' values from prod Li zeming

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

all inboxes | Powered by JetHome®