summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Prabhu B <bmanoj@codeaurora.org>2016-05-17 14:30:28 +0530
committerKyle Yan <kyan@codeaurora.org>2016-05-24 11:58:02 -0700
commitee5af4bf4cf80ee3b05233ca2d11fbf242cd9094 (patch)
treed294fd8abe4afb8f863bdcb22cd957892dd0c4a2
parent822518ad9d9f2de04268dec914e56ef3e665b4ee (diff)
diag: Fix to proper updation of buffering flag
This patch adresses the proper updation of buffering flag with the check for streaming buffering mode against the peripheral's buffering mode. CRs-Fixed: 1017305 Change-Id: Idc4556e568a42aa2441295c9e3caa3f2c92c4cc6 Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
-rw-r--r--drivers/char/diag/diagfwd_cntl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/diag/diagfwd_cntl.c b/drivers/char/diag/diagfwd_cntl.c
index e9d025455382..594d3b1bf3b5 100644
--- a/drivers/char/diag/diagfwd_cntl.c
+++ b/drivers/char/diag/diagfwd_cntl.c
@@ -1099,7 +1099,7 @@ int diag_send_peripheral_buffering_mode(struct diag_buffering_mode_t *params)
driver->buffering_mode[peripheral].mode = params->mode;
driver->buffering_mode[peripheral].low_wm_val = params->low_wm_val;
driver->buffering_mode[peripheral].high_wm_val = params->high_wm_val;
- if (mode == DIAG_BUFFERING_MODE_STREAMING)
+ if (params->mode == DIAG_BUFFERING_MODE_STREAMING)
driver->buffering_flag[peripheral] = 0;
fail:
mutex_unlock(&driver->mode_lock);