diff options
author | Chris Lew <clew@codeaurora.org> | 2017-05-22 16:47:43 -0700 |
---|---|---|
committer | Chris Lew <clew@codeaurora.org> | 2017-07-20 18:12:37 -0700 |
commit | c94670590bdf509cdf025fef444de7862761577e (patch) | |
tree | 232a044ff295271c9b451244a74daab170c3ff74 | |
parent | a828392297102c7bcb636299d2aa767afb9f21e0 (diff) |
diag: mhi: Remove unnecessary sanity check
On an MHI down notification, the enabled state is set to 0 before
flushing the workqueue and buffers. This sanity check conflicts
with the down notification. Remove unneeded sanity check.
Change-Id: I6bedc353187bee907775347009e0d4157b0e35e2
Signed-off-by: Chris Lew <clew@codeaurora.org>
-rw-r--r-- | drivers/char/diag/diagfwd_mhi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/diag/diagfwd_mhi.c b/drivers/char/diag/diagfwd_mhi.c index 356bd34ec7a7..b36f73e3442b 100644 --- a/drivers/char/diag/diagfwd_mhi.c +++ b/drivers/char/diag/diagfwd_mhi.c @@ -197,7 +197,7 @@ static void mhi_buf_tbl_clear(struct diag_mhi_info *mhi_info) struct diag_mhi_buf_tbl_t *item = NULL; struct diag_mhi_ch_t *ch = NULL; - if (!mhi_info || !mhi_info->enabled) + if (!mhi_info) return; /* Clear all the pending reads */ |