All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Ceresoli <luca@lucaceresoli.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 1/2] tools/zynqmp_psu_init_minimize.sh: fix return lines coding style
Date: Tue, 11 Jun 2019 18:39:40 +0200	[thread overview]
Message-ID: <20190611163941.25538-1-luca@lucaceresoli.net> (raw)

Remove unneeded parenthess around return value. E.g.:
    return (0);   ->   return 0;

Signed-off-by: Luca Ceresoli <luca@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+
-- 
2.21.0

             reply	other threads:[~2019-06-11 16:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-11 16:39 Luca Ceresoli [this message]
2019-06-11 16:39 ` [U-Boot] [PATCH v3 2/2] arm64: zynqmp: add support for Avnet UltraZed-EV Starter Kit Luca Ceresoli
2019-06-12 11:32   ` Michal Simek
2019-06-19  7:20     ` Michal Simek
2019-06-19 16:27       ` Luca Ceresoli
2019-06-12 11:30 ` [U-Boot] [PATCH v3 1/2] tools/zynqmp_psu_init_minimize.sh: fix return lines coding style Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190611163941.25538-1-luca@lucaceresoli.net \
    --to=luca@lucaceresoli.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.