]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: intel_scu_ipc: Convert to check for errors first
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 21 Oct 2024 13:34:32 +0000 (16:34 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Oct 2024 08:34:07 +0000 (11:34 +0300)
commitacf1b04c6890aef9bb356195221e75ce3862f84e
treea369f44a858023e5b8e7f0fc8fb5f8590eaec109
parentce44b96261a6af318a9e28a16f0d9749e89179a6
platform/x86: intel_scu_ipc: Convert to check for errors first

Convert to use usual pattern, i.e. check for errors first. This makes
code less indented and easier to read after all.

Tested-by: Ferry Toth <fntoth@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20241021133705.2933464-5-andriy.shevchenko@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel_scu_ipc.c