net: qca_framing: use u16 for frame offset
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 29 May 2017 11:57:10 +0000 (13:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 17:57:27 +0000 (13:57 -0400)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/qca_framing.h

index d5e795dcdf47ae824d663707f3353eb1563d6ba4..8b385e6f22c9ab35aed03c42f9f0f38dc4b63f06 100644 (file)
@@ -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;