]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: zynqmp_psu_init_minimize.sh: fix return lines coding style
authorLuca Ceresoli <luca@lucaceresoli.net>
Tue, 11 Jun 2019 16:39:40 +0000 (18:39 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jul 2019 08:20:06 +0000 (10:20 +0200)
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>
tools/zynqmp_psu_init_minimize.sh

index b0a07f9080a64a501c9cf3296dda41145ee2220c..384bb56e1a165342bb97c1ebdc57b277ad8de70d 100755 (executable)
@@ -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+