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 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel