summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-10-16 15:00:23 +0200
committerLee Jones <lee@kernel.org>2024-10-31 15:59:40 +0100
commit3d1c3272a80952617158a9149bebcebb4463a4fd (patch)
treebbac7677d0f5865ebda4db221ecf9d3748ff4108 /drivers/mfd
parentmfd: intel_soc_pmic_bxtwc: Deduplicate error messages (diff)
downloadlinux-3d1c3272a80952617158a9149bebcebb4463a4fd.tar.xz
linux-3d1c3272a80952617158a9149bebcebb4463a4fd.zip
mfd: ipaq-micro: Add missing break for the default case
Even default case should have a break statement to make code robust against changes (e.g., adding a case after the default one). Add missing break for the default case. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20241016130023.872277-1-andriy.shevchenko@linux.intel.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/ipaq-micro.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c
index c964ea6539aa..2370b44e2214 100644
--- a/drivers/mfd/ipaq-micro.c
+++ b/drivers/mfd/ipaq-micro.c
@@ -130,6 +130,7 @@ static void micro_rx_msg(struct ipaq_micro *micro, u8 id, int len, u8 *data)
default:
dev_err(micro->dev,
"unknown msg %d [%d] %*ph\n", id, len, len, data);
+ break;
}
spin_unlock(&micro->lock);
}