[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1529676119-21591-3-git-send-email-passt@h-hofmeier.de>
Date: Fri, 22 Jun 2018 16:01:58 +0200
From: Henriette Hofmeier <passt@...ofmeier.de>
To: devel@...uxdriverproject.org
Cc: florian.harbecke@....de, linux-kernel@...cs.fau.de,
gregkh@...uxfoundation.org, shreeya.patel23498@...il.com,
garsilva@...eddedor.com, tavery321@...il.com,
jeremy.lefaure@....epita.fr, aishpant@...il.com,
georgiana.chelu93@...il.com, himanshujha199640@...il.com,
joe@...ches.com, keescook@...omium.org, natechancellor@...il.com,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
xmrancho@...il.com, Henriette Hofmeier <passt@...ofmeier.de>
Subject: [PATCH 2/3] staging: rtl8723bs: Remove unnecessary initializations
Remove initializations of global variables with 0.
Criticized by checkpatch.
Signed-off-by: Henriette Hofmeier <passt@...ofmeier.de>
Signed-off-by: Florian Harbecke <florian.harbecke@....de>
---
drivers/staging/rtl8723bs/core/rtw_efuse.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c
index bbf6f3f..9d265f4 100644
--- a/drivers/staging/rtl8723bs/core/rtw_efuse.c
+++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c
@@ -13,18 +13,18 @@
/*------------------------Define local variable------------------------------*/
-u8 fakeEfuseBank = 0;
-u32 fakeEfuseUsedBytes = 0;
+u8 fakeEfuseBank;
+u32 fakeEfuseUsedBytes;
u8 fakeEfuseContent[EFUSE_MAX_HW_SIZE] = {0};
u8 fakeEfuseInitMap[EFUSE_MAX_MAP_LEN] = {0};
u8 fakeEfuseModifiedMap[EFUSE_MAX_MAP_LEN] = {0};
-u32 BTEfuseUsedBytes = 0;
+u32 BTEfuseUsedBytes;
u8 BTEfuseContent[EFUSE_MAX_BT_BANK][EFUSE_MAX_HW_SIZE];
u8 BTEfuseInitMap[EFUSE_BT_MAX_MAP_LEN] = {0};
u8 BTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN] = {0};
-u32 fakeBTEfuseUsedBytes = 0;
+u32 fakeBTEfuseUsedBytes;
u8 fakeBTEfuseContent[EFUSE_MAX_BT_BANK][EFUSE_MAX_HW_SIZE];
u8 fakeBTEfuseInitMap[EFUSE_BT_MAX_MAP_LEN] = {0};
u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN] = {0};
--
2.7.4
Powered by blists - more mailing lists