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>
This commit is contained in:
parent
011f4ea097
commit
581e8ae49e
@ -345,8 +345,7 @@ netxen_pcie_sem_lock(struct netxen_adapter *adapter, int sem, u32 id_reg)
|
|||||||
void
|
void
|
||||||
netxen_pcie_sem_unlock(struct netxen_adapter *adapter, int sem)
|
netxen_pcie_sem_unlock(struct netxen_adapter *adapter, int sem)
|
||||||
{
|
{
|
||||||
int val;
|
NXRD32(adapter, NETXEN_PCIE_REG(PCIE_SEM_UNLOCK(sem)));
|
||||||
val = NXRD32(adapter, NETXEN_PCIE_REG(PCIE_SEM_UNLOCK(sem)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int netxen_niu_xg_init_port(struct netxen_adapter *adapter, int port)
|
int netxen_niu_xg_init_port(struct netxen_adapter *adapter, int port)
|
||||||
|
@ -784,7 +784,7 @@ netxen_need_fw_reset(struct netxen_adapter *adapter)
|
|||||||
if (NXRD32(adapter, CRB_CMDPEG_STATE) == PHAN_INITIALIZE_FAILED)
|
if (NXRD32(adapter, CRB_CMDPEG_STATE) == PHAN_INITIALIZE_FAILED)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
old_count = count = NXRD32(adapter, NETXEN_PEG_ALIVE_COUNTER);
|
old_count = NXRD32(adapter, NETXEN_PEG_ALIVE_COUNTER);
|
||||||
|
|
||||||
for (i = 0; i < 10; i++) {
|
for (i = 0; i < 10; i++) {
|
||||||
|
|
||||||
|
@ -340,7 +340,7 @@ netxen_check_hw_init(struct netxen_adapter *adapter, int first_boot)
|
|||||||
if (!(first_boot & 0x4)) {
|
if (!(first_boot & 0x4)) {
|
||||||
first_boot |= 0x4;
|
first_boot |= 0x4;
|
||||||
NXWR32(adapter, NETXEN_PCIE_REG(0x4), first_boot);
|
NXWR32(adapter, NETXEN_PCIE_REG(0x4), first_boot);
|
||||||
first_boot = NXRD32(adapter, NETXEN_PCIE_REG(0x4));
|
NXRD32(adapter, NETXEN_PCIE_REG(0x4));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is the first boot after power up */
|
/* This is the first boot after power up */
|
||||||
|
Loading…
Reference in New Issue
Block a user