[PATCH 3/3] IB/mthca: Delete unnecessary variable initialisations in mthca_reset()

From: SF Markus Elfring
Date: Sat Jul 23 2016 - 07:00:41 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 23 Jul 2016 11:54:06 +0200

Three local variables will be set to an appropriate value a bit later.
Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
drivers/infiniband/hw/mthca/mthca_reset.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/infiniband/hw/mthca/mthca_reset.c b/drivers/infiniband/hw/mthca/mthca_reset.c
index 6727af2..0a458c6 100644
--- a/drivers/infiniband/hw/mthca/mthca_reset.c
+++ b/drivers/infiniband/hw/mthca/mthca_reset.c
@@ -42,12 +42,12 @@ int mthca_reset(struct mthca_dev *mdev)
{
int i;
int err = 0;
- u32 *hca_header = NULL;
+ u32 *hca_header;
u32 *bridge_header = NULL;
struct pci_dev *bridge = NULL;
int bridge_pcix_cap = 0;
- int hca_pcie_cap = 0;
- int hca_pcix_cap = 0;
+ int hca_pcie_cap;
+ int hca_pcix_cap;

u16 devctl;
u16 linkctl;
--
2.9.2