i40e: fix shifts of signed values
authorBeilei Xing <beilei.xing@intel.com>
Tue, 23 Jul 2019 10:01:33 +0000 (06:01 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 22 Aug 2019 20:24:13 +0000 (13:24 -0700)
commitfb59826288a662e0a0c1934d7d068dc91f35764d
tree0f04aea45b5ad2ead42e331e248d640aaff91531
parent408bfc382efca14cc02c57ae935d5b7efd72e02a
i40e: fix shifts of signed values

This patch fixes following error reported by cppcheck:
(error) Shifting signed 32-bit value by 31 bits is undefined behaviour

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@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_register.h