spl: sata: Rework the loading case it not use IS_ENABLED(...)
authorTom Rini <trini@konsulko.com>
Tue, 10 Jan 2023 16:19:35 +0000 (11:19 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jan 2023 17:27:06 +0000 (12:27 -0500)
commit6e73ab32d826d4baca78872dbbaabcf511728bed
treee31700a17dd428ba398443979ee67dfb3a21df89
parentd35e44fbe79f42b42cfef654aa9751bf409eca78
spl: sata: Rework the loading case it not use IS_ENABLED(...)

In this case, using IS_ENABLED(...) to attempt to load the image results
in harder to read and less useful code, along with having to define a
CONFIG value that would be unused. To maintain the current albeit
slightly odd behavior, maintain that if we have both SPL_FS_FAT and
SPL_SATA_RAW_U_BOOT_USE_SECTOR enabled, we use SPL_FS_FAT for the load.

Signed-off-by: Tom Rini <trini@konsulko.com>
common/spl/spl_sata.c