[U-Boot] [PATCH v3 1/2] tools/zynqmp_psu_init_minimize.sh: fix return lines coding style

Michal Simek michal.simek at xilinx.com
Wed Jun 12 11:30:14 UTC 2019


On 11. 06. 19 18:39, Luca Ceresoli wrote:
> Remove unneeded parenthess around return value. E.g.:
>     return (0);   ->   return 0;
> 
> Signed-off-by: Luca Ceresoli <luca at lucaceresoli.net>
> ---
>  tools/zynqmp_psu_init_minimize.sh | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tools/zynqmp_psu_init_minimize.sh b/tools/zynqmp_psu_init_minimize.sh
> index b0a07f9080a6..384bb56e1a16 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+
> 

Applied.
M


More information about the U-Boot mailing list