net/i40e: fix shifts of signed values
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 21 May 2018 14:45:59 +0000 (15:45 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 22 May 2018 22:35:01 +0000 (00:35 +0200)
commit1962193cc86a23c0a6d89c7e8563818a40f5dedd
tree0db428525fbc3bbff41c4c958acb43f78ff03283
parent4ebbe84dae82290ed2e49e36bf894efec0dc2123
net/i40e: fix shifts of signed values

Following error reported by cppcheck:
(error) Shifting signed 32-bit value by 31 bits is
undefined behaviour. The patch fixes it.

Fixes: 8db9e2a1b232 ("i40e: base driver")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/base/i40e_register.h