From c94670590bdf509cdf025fef444de7862761577e Mon Sep 17 00:00:00 2001 From: Chris Lew Date: Mon, 22 May 2017 16:47:43 -0700 Subject: [PATCH] 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 --- drivers/char/diag/diagfwd_mhi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */