i40e/i40evf: fix a potential type compare issue
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 26 Aug 2015 19:14:11 +0000 (15:14 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 7 Oct 2015 20:38:11 +0000 (13:38 -0700)
commitdf08fd4dbcc95cbc5a35745b6a77a9df0dc5776f
tree2a3147419146e937e89ff9797e3d1c36eae63444
parentbc5166b908aaa126d524b84c767323b75c17bdee
i40e/i40evf: fix a potential type compare issue

Rework an if expression to assure there is no type compare problem between
a size and a possible negative number.

Change-ID: I4921fcc96abfcf69490efce020a9e4007f251c99
Reported-by: Helin Zhang <helin.zhang@intel.com>
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_adminq.h
drivers/net/ethernet/intel/i40evf/i40e_adminq.h