mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] treewide: replace commas with semicolons where appropriate
Date: Mon, 18 May 2020 08:36:01 +0200	[thread overview]
Message-ID: <20200518063601.GN11869@pengutronix.de> (raw)
In-Reply-To: <20200517182039.9259-1-a.fatoum@pengutronix.de>

On Sun, May 17, 2020 at 08:20:39PM +0200, Ahmad Fatoum wrote:
> Found by searching drivers/ arch/ common/ and lib/ for
> 
>  /^\s+[^."/\*\[\s\{\(A-Z][^\[\{\(]*=[^\{\(]+,$/
> 
> Because the comma has the lowest precedence in C,
> this shouldn't result in any functional change.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  .../boards/eukrea_cpuimx35/eukrea_cpuimx35.c  |  2 +-
>  arch/arm/mach-imx/iim.c                       |  6 +++---
>  arch/nios2/lib/libgcc.c                       | 21 ++++++++++---------
>  drivers/i2c/busses/i2c-imx-early.c            |  2 +-
>  drivers/i2c/busses/i2c-imx.c                  |  2 +-
>  drivers/i2c/busses/i2c-omap.c                 |  2 +-
>  drivers/mci/stm32_sdmmc2.c                    |  4 ++--
>  drivers/net/usb/usbnet.c                      | 10 ++++-----
>  8 files changed, 25 insertions(+), 24 deletions(-)
> 
> diff --git a/arch/nios2/lib/libgcc.c b/arch/nios2/lib/libgcc.c
> index abf93fdd71d4..814df7331058 100644
> --- a/arch/nios2/lib/libgcc.c
> +++ b/arch/nios2/lib/libgcc.c
> @@ -319,15 +319,15 @@ DWtype __divdi3(DWtype u, DWtype v)
>  	DWunion vv = {.ll = v};
>  	DWtype w;
>  
> -	if (uu.s.high < 0)
> -		c = ~c,
> -
> -	uu.ll = -uu.ll;
> -
> -	if (vv.s.high < 0)
> -		c = ~c,
> +	if (uu.s.high < 0) {
> +		c = ~c;
> +		uu.ll = -uu.ll;
> +	}
>  
> -	vv.ll = -vv.ll;
> +	if (vv.s.high < 0) {
> +		c = ~c;
> +		vv.ll = -vv.ll;
> +	}

Indeed it looks like the code is correct, not the indention.

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-05-18  6:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-17 18:20 Ahmad Fatoum
2020-05-18  6:36 ` Sascha Hauer [this message]
2020-05-18  9:31 ` Roland Hieber
2020-05-20 12:05   ` Sascha Hauer

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=20200518063601.GN11869@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox