OSDN Git Service

icnss: Fix incorrect clean-up of stats
authorSameer Thalappil <sameert@codeaurora.org>
Fri, 23 Jun 2017 23:40:44 +0000 (16:40 -0700)
committerGerrit - the friendly Code Review server <code-review@localhost>
Mon, 26 Jun 2017 20:44:53 +0000 (13:44 -0700)
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 <sameert@codeaurora.org>
drivers/soc/qcom/icnss.c

index f5517f2..21be894 100644 (file)
@@ -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;
 }