summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2019-06-11 18:39:40 +0200
committerMichal Simek <michal.simek@xilinx.com>2019-07-30 10:20:06 +0200
commit7f492f3c11ff29467f4bc8bde24b81e18324d184 (patch)
tree45afc8814b484dc81eb6c7996a6bffd25c3749ea /tools
parent5456935a1da3714f5e51cbceac224725ca587e83 (diff)
downloadu-boot-7f492f3c11ff29467f4bc8bde24b81e18324d184.tar.gz
tools: zynqmp_psu_init_minimize.sh: fix return lines coding style
Remove unneeded parenthess around return value. E.g.: return (0); -> return 0; Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/zynqmp_psu_init_minimize.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/zynqmp_psu_init_minimize.sh b/tools/zynqmp_psu_init_minimize.sh
index b0a07f9080..384bb56e1a 100755
--- a/tools/zynqmp_psu_init_minimize.sh
+++ b/tools/zynqmp_psu_init_minimize.sh
@@ -94,6 +94,9 @@ sed -i 's/^unsigned long /static &/g' ${OUT}
sed -i 's/()$/(void)/g' ${OUT}
sed -i 's/0X/0x/g' ${OUT}
+# return (0) -> return 0
+sed -ri 's/return \(([0-9]+)\)/return \1/g' ${OUT}
+
# Add header
cat << EOF >${TMP}
// SPDX-License-Identifier: GPL-2.0+