Skip to content

Commit 93deeea

Browse files
committed
mb/novacustom/nuc_box: use if (CONFIG()) for SMBIOS guard
get_smbios_data is unconditionally present in struct device_operations, so a preprocessor guard is not needed. Replace #if CONFIG() / #endif with if (CONFIG()) so the compiler checks both branches. Upstream-Status: Pending Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
1 parent d1d73c5 commit 93deeea

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/mainboard/novacustom/nuc_box/ramstage.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ void mainboard_update_soc_chip_config(struct soc_intel_meteorlake_config *config
3434

3535
static void mainboard_enable(struct device *dev)
3636
{
37-
#if CONFIG(GENERATE_SMBIOS_TABLES)
38-
dev->ops->get_smbios_data = mainboard_smbios_data;
39-
#endif
37+
if (CONFIG(GENERATE_SMBIOS_TABLES))
38+
dev->ops->get_smbios_data = mainboard_smbios_data;
4039
}
4140

4241
struct chip_operations mainboard_ops = {

0 commit comments

Comments
 (0)