Commit f831b8e4a4f2992f3aa6d59fb91000c605a57ea7
Committed by
Tom Rini
1 parent
dd38045dce
Exists in
v2017.01-smarct4x
and in
25 other branches
spl: sandbox: Drop spl_board_announce_boot_device()
This function is not used anymore. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
Showing 1 changed file with 3 additions and 14 deletions Side-by-side Diff
arch/sandbox/cpu/spl.c
... | ... | @@ -25,19 +25,6 @@ |
25 | 25 | return BOOT_DEVICE_BOARD; |
26 | 26 | } |
27 | 27 | |
28 | -void spl_board_announce_boot_device(void) | |
29 | -{ | |
30 | - char fname[256]; | |
31 | - int ret; | |
32 | - | |
33 | - ret = os_find_u_boot(fname, sizeof(fname)); | |
34 | - if (ret) { | |
35 | - printf("(%s not found, error %d)\n", fname, ret); | |
36 | - return; | |
37 | - } | |
38 | - printf("%s\n", fname); | |
39 | -} | |
40 | - | |
41 | 28 | static int spl_board_load_image(struct spl_image_info *spl_image, |
42 | 29 | struct spl_boot_device *bootdev) |
43 | 30 | { |
44 | 31 | |
... | ... | @@ -45,8 +32,10 @@ |
45 | 32 | int ret; |
46 | 33 | |
47 | 34 | ret = os_find_u_boot(fname, sizeof(fname)); |
48 | - if (ret) | |
35 | + if (ret) { | |
36 | + printf("(%s not found, error %d)\n", fname, ret); | |
49 | 37 | return ret; |
38 | + } | |
50 | 39 | |
51 | 40 | /* Hopefully this will not return */ |
52 | 41 | return os_spl_to_uboot(fname); |