diff options
| author | Simon Glass <[email protected]> | 2021-07-24 09:03:30 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-08-02 13:32:14 -0400 |
| commit | 0b1284eb52578e15ec611adc5fee1a9ae68dadea (patch) | |
| tree | 2d83815e93fc16decbaa5671fd660ade0ec74532 /disk | |
| parent | 7e5f460ec457fe310156e399198a41eb0ce1e98c (diff) | |
global: Convert simple_strtoul() with decimal to dectoul()
It is a pain to have to specify the value 10 in each call. Add a new
dectoul() function and update the code to use it.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'disk')
| -rw-r--r-- | disk/part_amiga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disk/part_amiga.c b/disk/part_amiga.c index 7eea60b564d..ac7ada54781 100644 --- a/disk/part_amiga.c +++ b/disk/part_amiga.c @@ -135,7 +135,7 @@ struct rigid_disk_block *get_rdisk(struct blk_desc *dev_desc) s = env_get("amiga_scanlimit"); if (s) - limit = simple_strtoul(s, NULL, 10); + limit = dectoul(s, NULL); else limit = AMIGA_BLOCK_LIMIT; @@ -175,7 +175,7 @@ struct bootcode_block *get_bootcode(struct blk_desc *dev_desc) s = env_get("amiga_scanlimit"); if (s) - limit = simple_strtoul(s, NULL, 10); + limit = dectoul(s, NULL); else limit = AMIGA_BLOCK_LIMIT; |
