aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
diff options
context:
space:
mode:
authorMark Rustad <mark.d.rustad@intel.com>2016-03-14 11:05:46 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-04-07 15:26:31 -0700
commit3775b814d5380a25ed89b881d845f79f81bc5547 (patch)
treec3bcf7c00405f2fbcc2655fa1b387a6a0024fab9 /drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
parentixgbe: Delete some unused register definitions (diff)
downloadlinux-dev-3775b814d5380a25ed89b881d845f79f81bc5547.tar.xz
linux-dev-3775b814d5380a25ed89b881d845f79f81bc5547.zip
ixgbe: Change the lan_id and func fields to a u8 to avoid casts
Since the lan_id and func fields only ever hold small values, make them u8 to avoid casts used to silence warnings. Signed-off-by: Mark Rustad <mark.d.rustad@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_type.h')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
index d02a0a3fa1d8..7ae4bbd26ad8 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
@@ -3122,8 +3122,8 @@ struct ixgbe_bus_info {
enum ixgbe_bus_width width;
enum ixgbe_bus_type type;
- u16 func;
- u16 lan_id;
+ u8 func;
+ u8 lan_id;
};
/* Flow control parameters */