mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] partitions: dos: don't open code get_unaligned_le32
@ 2013-11-08  0:14 Uwe Kleine-König
  2013-11-08 14:29 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2013-11-08  0:14 UTC (permalink / raw)
  To: barebox

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-08 14:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-08  0:14 [PATCH] partitions: dos: don't open code get_unaligned_le32 Uwe Kleine-König
2013-11-08 14:29 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox