Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1652455 > unrolled thread

[PATCH v8 net-next 02/17] net: qca_framing: use u16 for frame offset

Started byStefan Wahren <stefan.wahren@i2se.com>
First post2017-05-29 14:00 +0200
Last post2017-05-29 14:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v8 net-next 02/17] net: qca_framing: use u16 for frame offset Stefan Wahren <stefan.wahren@i2se.com> - 2017-05-29 14:00 +0200

#1652455 — [PATCH v8 net-next 02/17] net: qca_framing: use u16 for frame offset

FromStefan Wahren <stefan.wahren@i2se.com>
Date2017-05-29 14:00 +0200
Subject[PATCH v8 net-next 02/17] net: qca_framing: use u16 for frame offset
Message-ID<tMrv4-7MV-13@gated-at.bofh.it>
It doesn't make sense to use a signed variable for offset here, so
fix it up.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
 drivers/net/ethernet/qualcomm/qca_framing.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/qualcomm/qca_framing.h b/drivers/net/ethernet/qualcomm/qca_framing.h
index d5e795d..8b385e6 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;
-- 
2.1.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web