Commit 798682e2 authored by Hans de Goede's avatar Hans de Goede

platform/x86: thinkpad_acpi: Properly indent code in tpacpi_dytc_profile_init()

The previous refactoring of some code in tpacpi_dytc_profile_init() left
a weirdly indented code-block behind.

Remove the unnecessary '{}' and reduce the indent level one step,
other then changing the indentation the code is completely unchanged.
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Tested-by: default avatarMark Pearson <mpearson@lenovo.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211121191129.256713-6-hdegoede@redhat.com
parent 0b0d2fba
...@@ -10095,31 +10095,30 @@ static int tpacpi_dytc_profile_init(struct ibm_init_struct *iibm) ...@@ -10095,31 +10095,30 @@ static int tpacpi_dytc_profile_init(struct ibm_init_struct *iibm)
if (dytc_version < 5) if (dytc_version < 5)
return -ENODEV; return -ENODEV;
{ dbg_printk(TPACPI_DBG_INIT,
dbg_printk(TPACPI_DBG_INIT, "DYTC version %d: thermal mode available\n", dytc_version);
"DYTC version %d: thermal mode available\n", dytc_version); /*
/* * Check if MMC_GET functionality available
* Check if MMC_GET functionality available * Version > 6 and return success from MMC_GET command
* Version > 6 and return success from MMC_GET command */
*/ dytc_mmc_get_available = false;
dytc_mmc_get_available = false; if (dytc_version >= 6) {
if (dytc_version >= 6) { err = dytc_command(DYTC_CMD_MMC_GET, &output);
err = dytc_command(DYTC_CMD_MMC_GET, &output); if (!err && ((output & DYTC_ERR_MASK) == DYTC_ERR_SUCCESS))
if (!err && ((output & DYTC_ERR_MASK) == DYTC_ERR_SUCCESS)) dytc_mmc_get_available = true;
dytc_mmc_get_available = true;
}
/* Create platform_profile structure and register */
err = platform_profile_register(&dytc_profile);
/*
* If for some reason platform_profiles aren't enabled
* don't quit terminally.
*/
if (err)
return -ENODEV;
/* Ensure initial values are correct */
dytc_profile_refresh();
} }
/* Create platform_profile structure and register */
err = platform_profile_register(&dytc_profile);
/*
* If for some reason platform_profiles aren't enabled
* don't quit terminally.
*/
if (err)
return -ENODEV;
/* Ensure initial values are correct */
dytc_profile_refresh();
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment