commit | 9cbee7e479d4034e58585a2b6ec6d35c465ef152 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@quicinc.com> | Wed Sep 20 17:52:39 2017 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Sep 20 17:52:39 2017 -0700 |
tree | c04e6e8bed90d066957cf603c7ed7f50ded1fca0 | |
parent | d309485912c78eac7046cd2bd3ce002f203ee548 [diff] | |
parent | 5c338450ef7f9ec3a2abae9a0bc9745f66819207 [diff] |
Merge "misc: qpnp: Initialize the variable to avoid junk value assign"
diff --git a/drivers/misc/qpnp-misc.c b/drivers/misc/qpnp-misc.c index 3c11de0..690b28b 100644 --- a/drivers/misc/qpnp-misc.c +++ b/drivers/misc/qpnp-misc.c
@@ -135,7 +135,7 @@ struct qpnp_misc_dev *mdev = NULL; struct qpnp_misc_dev *mdev_found = NULL; int rc; - u8 temp; + u8 temp = 0; if (IS_ERR_OR_NULL(node)) { pr_err("Invalid device node pointer\n");