Author: bz
Date: Sun Sep 27 12:19:36 2015
New Revision: 288308
URL: https://svnweb.freebsd.org/changeset/base/288308

Log:
  Fix what looks like a consistent copy&paste error.
  Don't make an integer to a boolean and then compare to a value which
  needs an integer comparison.
  
  Spotted by:   reading kernel compile time log
  MFC after:    2 weeks

Modified:
  head/sys/dev/nxge/xgehal/xgehal-fifo.c
  head/sys/dev/nxge/xgehal/xgehal-ring.c

Modified: head/sys/dev/nxge/xgehal/xgehal-fifo.c
==============================================================================
--- head/sys/dev/nxge/xgehal/xgehal-fifo.c      Sun Sep 27 12:17:03 2015        
(r288307)
+++ head/sys/dev/nxge/xgehal/xgehal-fifo.c      Sun Sep 27 12:19:36 2015        
(r288308)
@@ -464,7 +464,7 @@ __hal_fifo_hw_initialize(xge_hal_device_
 
            if (!hldev->config.fifo.queue[i].configured ||
                !hldev->config.fifo.queue[i].intr_vector ||
-               !hldev->config.intr_mode != XGE_HAL_INTR_MODE_MSIX)
+               hldev->config.intr_mode != XGE_HAL_INTR_MODE_MSIX)
                continue;
 
            /* find channel */

Modified: head/sys/dev/nxge/xgehal/xgehal-ring.c
==============================================================================
--- head/sys/dev/nxge/xgehal/xgehal-ring.c      Sun Sep 27 12:17:03 2015        
(r288307)
+++ head/sys/dev/nxge/xgehal/xgehal-ring.c      Sun Sep 27 12:19:36 2015        
(r288308)
@@ -609,7 +609,7 @@ __hal_ring_hw_initialize(xge_hal_device_
 
            if (!hldev->config.ring.queue[i].configured ||
                !hldev->config.ring.queue[i].intr_vector ||
-               !hldev->config.intr_mode != XGE_HAL_INTR_MODE_MSIX)
+               hldev->config.intr_mode != XGE_HAL_INTR_MODE_MSIX)
                continue;
 
            /* find channel */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to