mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] partitions: dos: don't open code get_unaligned_le32
Date: Fri, 8 Nov 2013 15:29:39 +0100	[thread overview]
Message-ID: <20131108142939.GX24559@pengutronix.de> (raw)
In-Reply-To: <1383869695-25566-1-git-send-email-u.kleine-koenig@pengutronix.de>

On Fri, Nov 08, 2013 at 01:14:55AM +0100, Uwe Kleine-König wrote:
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Runtime tested and applied, thanks

Sascha

> ---
> Hello,
> 
> note this is only compile tested.
> 
> Best regards
> Uwe
> 
>  common/partitions/dos.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/partitions/dos.c b/common/partitions/dos.c
> index 31b1ed6..9afd122 100644
> --- a/common/partitions/dos.c
> +++ b/common/partitions/dos.c
> @@ -105,7 +105,7 @@ static int dos_get_disk_signature(struct param_d *p, void *_priv)
>  	if (!buf)
>  		return -EIO;
>  
> -	priv->signature = le32_to_cpup((__le32 *)(buf + 0x1b8));
> +	priv->signature = get_unaligned_le32(buf + 0x1b8);
>  
>  	free(buf);
>  
> -- 
> 1.8.4.rc3
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 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:[~2013-11-08 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-08  0:14 Uwe Kleine-König
2013-11-08 14:29 ` Sascha Hauer [this message]

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