From: Al Stone ahs3@redhat.com
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 --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/of/base.c b/drivers/of/base.c index 74ab1b8..f71d2e4 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)