of: property: Remove unneeded return variable
authorYang Li <yang.lee@linux.alibaba.com>
Tue, 2 Mar 2021 09:16:38 +0000 (17:16 +0800)
committerRob Herring <robh@kernel.org>
Thu, 11 Mar 2021 16:53:38 +0000 (09:53 -0700)
commit065cac6c686d755e8379ee1e8d00e7c7ba79f49a
treeb1605ab4aa3cd5214d6aeeb3ecfd3e56b9d801d0
parent886db32398aba36937e3a61bc093bf4d859cfaf8
of: property: Remove unneeded return variable

This patch removes unneeded return variables, using only
'0' instead.
It fixes the following warning detected by coccinelle:
./drivers/of/property.c:1371:5-8: Unneeded variable: "ret". Return "0"
on line 1388

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1614676598-105267-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/property.c