Author: yongari
Date: Wed Jan 18 02:16:17 2017
New Revision: 312362
URL: https://svnweb.freebsd.org/changeset/base/312362

Log:
  MFC r295735:
    Fix variable assignment.

Modified:
  stable/10/sys/dev/age/if_age.c
  stable/10/sys/dev/alc/if_alc.c
  stable/10/sys/dev/ale/if_ale.c
  stable/10/sys/dev/jme/if_jme.c
  stable/10/sys/dev/msk/if_msk.c
  stable/10/sys/dev/stge/if_stge.c
  stable/10/sys/dev/vte/if_vte.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/age/if_age.c
==============================================================================
--- stable/10/sys/dev/age/if_age.c      Wed Jan 18 01:58:33 2017        
(r312361)
+++ stable/10/sys/dev/age/if_age.c      Wed Jan 18 02:16:17 2017        
(r312362)
@@ -587,7 +587,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. */

Modified: stable/10/sys/dev/alc/if_alc.c
==============================================================================
--- stable/10/sys/dev/alc/if_alc.c      Wed Jan 18 01:58:33 2017        
(r312361)
+++ stable/10/sys/dev/alc/if_alc.c      Wed Jan 18 02:16:17 2017        
(r312362)
@@ -1543,7 +1543,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. */

Modified: stable/10/sys/dev/ale/if_ale.c
==============================================================================
--- stable/10/sys/dev/ale/if_ale.c      Wed Jan 18 01:58:33 2017        
(r312361)
+++ stable/10/sys/dev/ale/if_ale.c      Wed Jan 18 02:16:17 2017        
(r312362)
@@ -602,7 +602,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. */

Modified: stable/10/sys/dev/jme/if_jme.c
==============================================================================
--- stable/10/sys/dev/jme/if_jme.c      Wed Jan 18 01:58:33 2017        
(r312361)
+++ stable/10/sys/dev/jme/if_jme.c      Wed Jan 18 02:16:17 2017        
(r312362)
@@ -803,7 +803,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);

Modified: stable/10/sys/dev/msk/if_msk.c
==============================================================================
--- stable/10/sys/dev/msk/if_msk.c      Wed Jan 18 01:58:33 2017        
(r312361)
+++ stable/10/sys/dev/msk/if_msk.c      Wed Jan 18 02:16:17 2017        
(r312362)
@@ -1626,7 +1626,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);
 

Modified: stable/10/sys/dev/stge/if_stge.c
==============================================================================
--- stable/10/sys/dev/stge/if_stge.c    Wed Jan 18 01:58:33 2017        
(r312361)
+++ stable/10/sys/dev/stge/if_stge.c    Wed Jan 18 02:16:17 2017        
(r312362)
@@ -507,7 +507,7 @@ stge_attach(device_t dev)
                }
        }
 
-       if ((error = stge_dma_alloc(sc) != 0))
+       if ((error = stge_dma_alloc(sc)) != 0)
                goto fail;
 
        /*

Modified: stable/10/sys/dev/vte/if_vte.c
==============================================================================
--- stable/10/sys/dev/vte/if_vte.c      Wed Jan 18 01:58:33 2017        
(r312361)
+++ stable/10/sys/dev/vte/if_vte.c      Wed Jan 18 02:16:17 2017        
(r312362)
@@ -426,7 +426,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. */
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to