fm10k/base: fix typecast
authorXiao Wang <xiao.w.wang@intel.com>
Fri, 19 Feb 2016 11:06:49 +0000 (19:06 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:51:43 +0000 (18:51 +0100)
commit7d9bf52c87a9f7ea017a9e0f82343d14e9cd724e
treeb824312d9caf7243da7d9ae14c825cbd61f46be3
parent46ba8411822d5943f6e18e8276c1fa4f935664f5
fm10k/base: fix typecast

Since the resultant data type of the mac_update.mac_upper field is u16,
it does not make sense to typecast u8 variables to u32 first.

Fixes: 7223d200c227 ("fm10k: add base driver")

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
Tested-by: Heng Ding <hengx.ding@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/base/fm10k_pf.c