netxen: fix smatch warning

o Fix pointless assignments

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Amit Kumar Salecha and committed by David S. Miller 581e8ae4 011f4ea0

+3 -4
+1 -2
drivers/net/netxen/netxen_nic_hw.c
··· 345 void 346 netxen_pcie_sem_unlock(struct netxen_adapter *adapter, int sem) 347 { 348 - int val; 349 - val = NXRD32(adapter, NETXEN_PCIE_REG(PCIE_SEM_UNLOCK(sem))); 350 } 351 352 int netxen_niu_xg_init_port(struct netxen_adapter *adapter, int port)
··· 345 void 346 netxen_pcie_sem_unlock(struct netxen_adapter *adapter, int sem) 347 { 348 + NXRD32(adapter, NETXEN_PCIE_REG(PCIE_SEM_UNLOCK(sem))); 349 } 350 351 int netxen_niu_xg_init_port(struct netxen_adapter *adapter, int port)
+1 -1
drivers/net/netxen/netxen_nic_init.c
··· 784 if (NXRD32(adapter, CRB_CMDPEG_STATE) == PHAN_INITIALIZE_FAILED) 785 return 1; 786 787 - old_count = count = NXRD32(adapter, NETXEN_PEG_ALIVE_COUNTER); 788 789 for (i = 0; i < 10; i++) { 790
··· 784 if (NXRD32(adapter, CRB_CMDPEG_STATE) == PHAN_INITIALIZE_FAILED) 785 return 1; 786 787 + old_count = NXRD32(adapter, NETXEN_PEG_ALIVE_COUNTER); 788 789 for (i = 0; i < 10; i++) { 790
+1 -1
drivers/net/netxen/netxen_nic_main.c
··· 340 if (!(first_boot & 0x4)) { 341 first_boot |= 0x4; 342 NXWR32(adapter, NETXEN_PCIE_REG(0x4), first_boot); 343 - first_boot = NXRD32(adapter, NETXEN_PCIE_REG(0x4)); 344 } 345 346 /* This is the first boot after power up */
··· 340 if (!(first_boot & 0x4)) { 341 first_boot |= 0x4; 342 NXWR32(adapter, NETXEN_PCIE_REG(0x4), first_boot); 343 + NXRD32(adapter, NETXEN_PCIE_REG(0x4)); 344 } 345 346 /* This is the first boot after power up */