diff options
Diffstat (limited to 'drivers/slimbus/qcom-ctrl.c')
-rw-r--r-- | drivers/slimbus/qcom-ctrl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slimbus/qcom-ctrl.c index ffb46f915334..bb36a8fbc9b1 100644 --- a/drivers/slimbus/qcom-ctrl.c +++ b/drivers/slimbus/qcom-ctrl.c | |||
@@ -439,13 +439,12 @@ static int slim_get_current_rxbuf(struct qcom_slim_ctrl *ctrl, void *buf) | |||
439 | static void qcom_slim_rxwq(struct work_struct *work) | 439 | static void qcom_slim_rxwq(struct work_struct *work) |
440 | { | 440 | { |
441 | u8 buf[SLIM_MSGQ_BUF_LEN]; | 441 | u8 buf[SLIM_MSGQ_BUF_LEN]; |
442 | u8 mc, mt, len; | 442 | u8 mc, mt; |
443 | int ret; | 443 | int ret; |
444 | struct qcom_slim_ctrl *ctrl = container_of(work, struct qcom_slim_ctrl, | 444 | struct qcom_slim_ctrl *ctrl = container_of(work, struct qcom_slim_ctrl, |
445 | wd); | 445 | wd); |
446 | 446 | ||
447 | while ((slim_get_current_rxbuf(ctrl, buf)) != -ENODATA) { | 447 | while ((slim_get_current_rxbuf(ctrl, buf)) != -ENODATA) { |
448 | len = SLIM_HEADER_GET_RL(buf[0]); | ||
449 | mt = SLIM_HEADER_GET_MT(buf[0]); | 448 | mt = SLIM_HEADER_GET_MT(buf[0]); |
450 | mc = SLIM_HEADER_GET_MC(buf[1]); | 449 | mc = SLIM_HEADER_GET_MC(buf[1]); |
451 | if (mt == SLIM_MSG_MT_CORE && | 450 | if (mt == SLIM_MSG_MT_CORE && |