]> git.karo-electronics.de Git - linux-beck.git/commit
i40e: use more portable sign extension
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 26 Feb 2015 16:12:58 +0000 (16:12 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 5 Mar 2015 12:00:06 +0000 (04:00 -0800)
commitce7ca75176dc3d87c75ea47a7b35a0ac50c7589c
tree23cf8735fcdeed561939279e6d0b1777b3dbdf67
parent4f651a5b0aa561962c97b76bb67ceb57491efabc
i40e: use more portable sign extension

Use automatic sign extension by replacing 0xffff... constants
with ~(u64)0 or ~(u32)0.

Change-ID: I73cab4cd2611795bb12e00f0f24fafaaee07457c
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Kevin Scott <kevin.c.scott@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c