diff options
| author | 2019-04-24 05:20:48 -0700 | |
|---|---|---|
| committer | 2019-06-14 12:59:16 -0700 | |
| commit | 97e42ef440a37efee0878625d18d22e57c3077cb (patch) | |
| tree | 3c2471747ab731e4a0c7b10afb4c804d314df4cd /tools/include/linux/stringify.h | |
| parent | i40e: add constraints for accessing veb array (diff) | |
i40e: Use signed variable
The counter variable in i40e_clean_tx_irq starts out negative and climbs
to 0. So it should not be defined as a u16. This was working by accident
due to the fact the u16 overflows and underflows predictably.
Replace the u16 with int, which is signed and can handle the negativity.
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
