[PATCH v4 18/18] staging: mt7621-pci: do not initialise statics to 0

Sergio Paracuellos sergio.paracuellos at gmail.com
Mon Sep 10 13:18:01 UTC 2018


Static variables are initialised to 0 by GCC and checkpatch
script also complains about that. Make it happy.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos at gmail.com>
---
 drivers/staging/mt7621-pci/pci-mt7621.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c
index f11e8505..a9536fa 100644
--- a/drivers/staging/mt7621-pci/pci-mt7621.c
+++ b/drivers/staging/mt7621-pci/pci-mt7621.c
@@ -148,7 +148,7 @@
 #define RG_PE1_FRC_MSTCKDIV		BIT(5)
 
 
-static int pcie_link_status = 0;
+static int pcie_link_status;
 
 /**
  * struct mt7621_pcie_port - PCIe port information
-- 
2.7.4



More information about the devel mailing list