summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/dpc.c
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2015-07-22 19:16:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-22 20:51:39 -0700
commit7135d9a76f787f089faad0e08bdef259cb019d64 (patch)
treef1b2dd09d8e4d13cc2fdc267894b39fd01efcea5 /drivers/staging/vt6655/dpc.c
parentf1e3e92135202ff3d95195393ee62808c109208c (diff)
downloadop-kernel-dev-7135d9a76f787f089faad0e08bdef259cb019d64.zip
op-kernel-dev-7135d9a76f787f089faad0e08bdef259cb019d64.tar.gz
staging: vt6655: Fix wReqCount to __le16
Should be __le16 and do and correct endian conversion. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/dpc.c')
-rw-r--r--drivers/staging/vt6655/dpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/dpc.c b/drivers/staging/vt6655/dpc.c
index b25ee96..e14eed1 100644
--- a/drivers/staging/vt6655/dpc.c
+++ b/drivers/staging/vt6655/dpc.c
@@ -144,7 +144,7 @@ bool vnt_receive_frame(struct vnt_private *priv, PSRxDesc curr_rd)
priv->rx_buf_sz, DMA_FROM_DEVICE);
frame_size = le16_to_cpu(curr_rd->m_rd1RD1.wReqCount)
- - cpu_to_le16(curr_rd->m_rd0RD0.wResCount);
+ - le16_to_cpu(curr_rd->m_rd0RD0.wResCount);
if ((frame_size > 2364) || (frame_size < 33)) {
/* Frame Size error drop this packet.*/
OpenPOWER on IntegriCloud