mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Fix variable assignment.
Found by: PVS-Studio
This commit is contained in:
parent
24e9c818fa
commit
9dda5c8ffc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295735
@ -588,7 +588,7 @@ age_attach(device_t dev)
|
||||
/* Create device sysctl node. */
|
||||
age_sysctl_node(sc);
|
||||
|
||||
if ((error = age_dma_alloc(sc) != 0))
|
||||
if ((error = age_dma_alloc(sc)) != 0)
|
||||
goto fail;
|
||||
|
||||
/* Load station address. */
|
||||
|
@ -1532,7 +1532,7 @@ alc_attach(device_t dev)
|
||||
/* Create device sysctl node. */
|
||||
alc_sysctl_node(sc);
|
||||
|
||||
if ((error = alc_dma_alloc(sc) != 0))
|
||||
if ((error = alc_dma_alloc(sc)) != 0)
|
||||
goto fail;
|
||||
|
||||
/* Load station address. */
|
||||
|
@ -603,7 +603,7 @@ ale_attach(device_t dev)
|
||||
/* Create device sysctl node. */
|
||||
ale_sysctl_node(sc);
|
||||
|
||||
if ((error = ale_dma_alloc(sc) != 0))
|
||||
if ((error = ale_dma_alloc(sc)) != 0)
|
||||
goto fail;
|
||||
|
||||
/* Load station address. */
|
||||
|
@ -804,7 +804,7 @@ jme_attach(device_t dev)
|
||||
}
|
||||
/* Create coalescing sysctl node. */
|
||||
jme_sysctl_node(sc);
|
||||
if ((error = jme_dma_alloc(sc) != 0))
|
||||
if ((error = jme_dma_alloc(sc)) != 0)
|
||||
goto fail;
|
||||
|
||||
ifp = sc->jme_ifp = if_alloc(IFT_ETHER);
|
||||
|
@ -1623,7 +1623,7 @@ msk_attach(device_t dev)
|
||||
callout_init_mtx(&sc_if->msk_tick_ch, &sc_if->msk_softc->msk_mtx, 0);
|
||||
msk_sysctl_node(sc_if);
|
||||
|
||||
if ((error = msk_txrx_dma_alloc(sc_if) != 0))
|
||||
if ((error = msk_txrx_dma_alloc(sc_if)) != 0)
|
||||
goto fail;
|
||||
msk_rx_dma_jalloc(sc_if);
|
||||
|
||||
|
@ -508,7 +508,7 @@ stge_attach(device_t dev)
|
||||
}
|
||||
}
|
||||
|
||||
if ((error = stge_dma_alloc(sc) != 0))
|
||||
if ((error = stge_dma_alloc(sc)) != 0)
|
||||
goto fail;
|
||||
|
||||
/*
|
||||
|
@ -428,7 +428,7 @@ vte_attach(device_t dev)
|
||||
/* Reset the ethernet controller. */
|
||||
vte_reset(sc);
|
||||
|
||||
if ((error = vte_dma_alloc(sc) != 0))
|
||||
if ((error = vte_dma_alloc(sc)) != 0)
|
||||
goto fail;
|
||||
|
||||
/* Create device sysctl node. */
|
||||
|
Loading…
Reference in New Issue
Block a user