From ff4a3a62c28f0ec72b286de0872bd26a1428e03f Mon Sep 17 00:00:00 2001 From: Yuchen He Date: Tue, 21 Mar 2023 23:40:08 +0100 Subject: intel/common/block/smm: remove return statements from void functions To be consistent with other occurrences in soc/intel/common, remove the return statements of weak void funtions since they are not generally useful. Found by the linter. Signed-off-by: Yuchen He Change-Id: I3fb8217cfcae65b5dc317458b59aa431f1ccdaef Reviewed-on: https://review.coreboot.org/c/coreboot/+/73866 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Felix Singer Reviewed-by: Subrata Banik --- src/soc/intel/common/block/smm/smihandler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/soc/intel') diff --git a/src/soc/intel/common/block/smm/smihandler.c b/src/soc/intel/common/block/smm/smihandler.c index 0a277f0744..3cbdd9fa09 100644 --- a/src/soc/intel/common/block/smm/smihandler.c +++ b/src/soc/intel/common/block/smm/smihandler.c @@ -39,7 +39,7 @@ __weak const struct smm_save_state_ops *get_smm_save_state_ops(void) /* Specific SOC SMI handler during ramstage finalize phase */ __weak void smihandler_soc_at_finalize(void) { - return; + /* no-op */ } __weak int smihandler_soc_disable_busmaster(pci_devfn_t dev) @@ -52,12 +52,12 @@ __weak int smihandler_soc_disable_busmaster(pci_devfn_t dev) __weak void mainboard_smi_gpi_handler( const struct gpi_status *sts) { - return; + /* no-op */ } __weak void mainboard_smi_espi_handler(void) { - return; + /* no-op */ } /* Common Functions */ -- cgit v1.2.3