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
This commit is contained in:
Bjoern A. Zeeb 2015-09-27 12:19:36 +00:00
parent 23d56b1e9c
commit cd44287c16
2 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ __hal_fifo_hw_initialize(xge_hal_device_h devh)
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 */

View File

@ -609,7 +609,7 @@ __hal_ring_hw_initialize(xge_hal_device_h devh)
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 */