[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220913035530.258266-1-zeming@nfschina.com>
Date: Tue, 13 Sep 2022 11:55:30 +0800
From: Li zeming <zeming@...china.com>
To: aelior@...vell.com, manishc@...vell.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Li zeming <zeming@...china.com>
Subject: [PATCH] qed: Remove unnecessary '0' values from prod
The prod variable is assigned first, it does not need to be initialized.
Signed-off-by: Li zeming <zeming@...china.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
Powered by blists - more mailing lists