From: Andrew Lee Date: Thu, 16 Nov 2017 08:04:31 +0000 (+0000) Subject: net/sfc/base: fix warnings from VS2015 C compiler (C4310) X-Git-Tag: spdx-start~642 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e6df11c8568005e590e454e2cfbd8ed937930811;p=dpdk.git net/sfc/base: fix warnings from VS2015 C compiler (C4310) Fix level 4 warning "C4310: cast truncates constant value"; no functional changes. Fixes: 354df7eadf66 ("net/sfc/base: import bootrom configuration") Cc: stable@dpdk.org Signed-off-by: Andrew Lee Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/base/efx_bootcfg.c b/drivers/net/sfc/base/efx_bootcfg.c index c47d16bc0b..660d0005a2 100644 --- a/drivers/net/sfc/base/efx_bootcfg.c +++ b/drivers/net/sfc/base/efx_bootcfg.c @@ -356,7 +356,7 @@ efx_bootcfg_read( rc = efx_bootcfg_verify(enp, (caddr_t)payload, sector_length, &used_bytes); if (rc != 0 || used_bytes == 0) { - payload[0] = (uint8_t)~DHCP_END; + payload[0] = (uint8_t)(~DHCP_END & 0xff); payload[1] = DHCP_END; used_bytes = 2; }