[PATCH 5/9] staging/ccg: initialize ret in functionfs_ready_callback()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The ret variable is not initialized and therefore random. I guess the
Android compiler is doing this right :P

Cc: devel@xxxxxxxxxxxxxxxxxxxx
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
---
 drivers/staging/ccg/ccg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ccg/ccg.c b/drivers/staging/ccg/ccg.c
index eadda55..8fb8663 100644
--- a/drivers/staging/ccg/ccg.c
+++ b/drivers/staging/ccg/ccg.c
@@ -226,7 +226,7 @@ static int functionfs_ready_callback(struct ffs_data *ffs)
 		goto done;
 	}
 	ffs_obj->desc_ready = true;
-
+	ret = 0;
 done:
 	mutex_unlock(&_ccg_dev->mutex);
 	return ret;
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux