summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qualcomm/qca_framing.c
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2017-05-29 14:57:14 +0300
committerDavid S. Miller <davem@davemloft.net>2017-05-30 20:57:28 +0300
commit2280e3cf1d7feb974d35b34863e9ed6e9c56b257 (patch)
tree82bb1c79aa3b08e96597152d09827c2cc97d033f /drivers/net/ethernet/qualcomm/qca_framing.c
parent0324e75db24bb99c6b7e096d84f273429eb94163 (diff)
downloadlinux-2280e3cf1d7feb974d35b34863e9ed6e9c56b257.tar.xz
net: qualcomm: Improve readability of length defines
In order to avoid mixing things up, make the MTU and frame length defines easier to read. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/qca_framing.c')
-rw-r--r--drivers/net/ethernet/qualcomm/qca_framing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qualcomm/qca_framing.c b/drivers/net/ethernet/qualcomm/qca_framing.c
index faa924c85e29..2341f2bf574d 100644
--- a/drivers/net/ethernet/qualcomm/qca_framing.c
+++ b/drivers/net/ethernet/qualcomm/qca_framing.c
@@ -117,7 +117,7 @@ qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_by
break;
case QCAFRM_WAIT_RSVD_BYTE2:
len = handle->offset;
- if (len > buf_len || len < QCAFRM_ETHMINLEN) {
+ if (len > buf_len || len < QCAFRM_MIN_LEN) {
ret = QCAFRM_INVLEN;
handle->state = QCAFRM_HW_LEN0;
} else {