The file already defines le32_to_cpu(), which does the same, so
use it.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 scripts/omap3-usb-loader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/omap3-usb-loader.c b/scripts/omap3-usb-loader.c
index 3ba9af06527c..73c5a6d97a53 100644
--- a/scripts/omap3-usb-loader.c
+++ b/scripts/omap3-usb-loader.c
@@ -403,7 +403,7 @@ static int transfer_first_stage(libusb_device_handle * 
handle, struct arg_state
        data = file->data;
        dbuf = data;
 
-       if (le32toh(dbuf[5]) == 0x45534843) {
+       if (le32_to_cpu(dbuf[5]) == 0x45534843) {
                int chsettingssize = 512 + 2 * sizeof(uint32_t);
 
                log_info("CHSETTINGS image detected. Skipping header\n");
-- 
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to