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>
This commit is contained in:
parent
a828392297
commit
c94670590b
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue