From e71a1f26c549aa84a593c37038deadd4330fb83b Mon Sep 17 00:00:00 2001 From: Sameer Thalappil Date: Fri, 23 Jun 2017 16:40:44 -0700 Subject: [PATCH] icnss: Fix incorrect clean-up of stats Fix the copy paste error of clearing the statistics as part of the fw_debug debugfs write interface. CRs-Fixed: 2066394 Change-Id: I4ca848a05af06c2a9e6ce1efeb3bfa3b77c2f8d8 Signed-off-by: Sameer Thalappil --- drivers/soc/qcom/icnss.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/soc/qcom/icnss.c b/drivers/soc/qcom/icnss.c index f5517f26e1f1..21be894414bc 100644 --- a/drivers/soc/qcom/icnss.c +++ b/drivers/soc/qcom/icnss.c @@ -3660,9 +3660,6 @@ static ssize_t icnss_fw_debug_write(struct file *fp, if (ret) return ret; - if (ret == 0) - memset(&priv->stats, 0, sizeof(priv->stats)); - return count; } -- 2.11.0