]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c8a95abc9bf6be946d3744a3f40fd2d886a15bc
treeb1605ab4aa3cd5214d6aeeb3ecfd3e56b9d801d0
parent9b3c3d3fbdd82b6c6932fc2a7d8f36c9dcb8c1bf
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