All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] cmd: cbfs: fix reading the end_of_rom pointer for 64bit archs
@ 2018-02-15  6:40 Andre Heider
  2018-02-15  6:40 ` [U-Boot] [PATCH 2/3] fs: cbfs: fix locating the cbfs header Andre Heider
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Andre Heider @ 2018-02-15  6:40 UTC (permalink / raw)
  To: u-boot

The cast breaks the pointer on 64bit archs, so lets get rid of it.

Signed-off-by: Andre Heider <a.heider@gmail.com>
---
 cmd/cbfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/cbfs.c b/cmd/cbfs.c
index 799ba01fcc..736f8c4527 100644
--- a/cmd/cbfs.c
+++ b/cmd/cbfs.c
@@ -22,7 +22,7 @@ static int do_cbfs_init(cmd_tbl_t *cmdtp, int flag, int argc,
 		return 0;
 	}
 	if (argc == 2) {
-		end_of_rom = (int)simple_strtoul(argv[1], &ep, 16);
+		end_of_rom = simple_strtoul(argv[1], &ep, 16);
 		if (*ep) {
 			puts("\n** Invalid end of ROM **\n");
 			return 1;
-- 
2.16.1

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

end of thread, other threads:[~2018-04-01 14:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-15  6:40 [U-Boot] [PATCH 1/3] cmd: cbfs: fix reading the end_of_rom pointer for 64bit archs Andre Heider
2018-02-15  6:40 ` [U-Boot] [PATCH 2/3] fs: cbfs: fix locating the cbfs header Andre Heider
2018-02-22  0:08   ` Alexander Graf
2018-04-01 14:19     ` Simon Glass
2018-04-01 14:28       ` Simon Glass
2018-02-15  6:40 ` [U-Boot] [PATCH 3/3] cbfs: add support for cbfs header components Andre Heider
2018-02-22  0:15   ` Alexander Graf
2018-04-01 14:19     ` Simon Glass
2018-02-21 23:59 ` [U-Boot] [PATCH 1/3] cmd: cbfs: fix reading the end_of_rom pointer for 64bit archs Alexander Graf
2018-04-01 14:28   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.