From: Stefan Wahren Date: Mon, 29 May 2017 11:57:10 +0000 (+0200) Subject: net: qca_framing: use u16 for frame offset X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e75977b4b88c3b226c7d3964a048fa8c75659b02;p=openwrt%2Fstaging%2Fblogic.git net: qca_framing: use u16 for frame offset It doesn't make sense to use a signed variable for offset here, so fix it up. Signed-off-by: Stefan Wahren Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qualcomm/qca_framing.h b/drivers/net/ethernet/qualcomm/qca_framing.h index d5e795dcdf47..8b385e6f22c9 100644 --- a/drivers/net/ethernet/qualcomm/qca_framing.h +++ b/drivers/net/ethernet/qualcomm/qca_framing.h @@ -103,7 +103,7 @@ struct qcafrm_handle { enum qcafrm_state state; /* Offset in buffer (borrowed for length too) */ - s16 offset; + u16 offset; /* Frame length as kept by this module */ u16 len;