summaryrefslogtreecommitdiffstats
path: root/common/partitions
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2013-11-08 01:14:55 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-08 15:28:27 +0100
commit8ddf910d2f885234168b81ccff2e68a537c29e37 (patch)
treed660f4a1abfd1e7e8c04c03f8b5b5db3e78e30ae /common/partitions
parente55160fe10ffce82df8e39d6dda48ee9512bf066 (diff)
downloadbarebox-8ddf910d2f885234168b81ccff2e68a537c29e37.tar.gz
partitions: dos: don't open code get_unaligned_le32
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/partitions')
-rw-r--r--common/partitions/dos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/partitions/dos.c b/common/partitions/dos.c
index 2e39e7d..64314a8 100644
--- a/common/partitions/dos.c
+++ b/common/partitions/dos.c
@@ -109,7 +109,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);