summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreelakshmi Gownipalli <sgownipa@codeaurora.org>2017-02-13 13:51:12 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-15 12:45:52 -0800
commit888ddad8b13f9f64dbee233c98fa5cf7f8662dc3 (patch)
treef3688a6b07ba3e59b4d6e715a32d0a77bc1eb75e
parent3a7e752617514960c5cecdf84e12b13dc63c04c7 (diff)
diag: dci: Initialize the stat variable before using it
Initialize the stat variable before using it while sending notification to dci client. Change-Id: Ie5f98d0f45a797f4f122d8c4e2bae1a92bf4e7c9 Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
-rw-r--r--drivers/char/diag/diag_dci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/diag/diag_dci.c b/drivers/char/diag/diag_dci.c
index 2c7662a24cd1..905ad0dc65fa 100644
--- a/drivers/char/diag/diag_dci.c
+++ b/drivers/char/diag/diag_dci.c
@@ -1433,7 +1433,7 @@ void diag_dci_channel_open_work(struct work_struct *work)
void diag_dci_notify_client(int peripheral_mask, int data, int proc)
{
- int stat;
+ int stat = 0;
struct siginfo info;
struct list_head *start, *temp;
struct diag_dci_client_tbl *entry = NULL;