aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Stone <ahs3@redhat.com>2014-11-04 17:08:10 -0700
committerGraeme Gregory <graeme.gregory@linaro.org>2014-11-06 12:00:51 +0000
commit451e14bfad54e25765bd81b864d4d842eede90a2 (patch)
tree38df35dbfa52ac268257960727b8e0836689826b
parentcc2a78c7e62390572dbc2612b7b0a9298658c117 (diff)
downloadleg-kernel-451e14bfad54e25765bd81b864d4d842eede90a2.tar.gz
drivers/of: fix new device property function that could return a bad value
Got a compiler warning: CC drivers/of/base.o drivers/of/base.c: In function ‘of_property_read_string_array’: drivers/of/base.c:1472:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Added a 'return 0;' so the function always returns a value as it should. Signed-off-by: Al Stone <al.stone@linaro.org>
-rw-r--r--drivers/of/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 74ab1b808650..f71d2e401d52 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1469,6 +1469,7 @@ int of_property_read_string_array(struct device_node *np, const char *propname,
total += l;
p += l;
}
+ return 0;
}
void of_print_phandle_args(const char *msg, const struct of_phandle_args *args)