Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: sbshc: Fix fall-through warning for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a
fallthrough warning by simply dropping the empty default case at
the bottom.

This contributes to the ongoing efforts to globally enable
-Wimplicit-fallthrough for Clang.

Link: https://github.com/KSPP/linux/issues/115
Suggested-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/lkml/CAJZ5v0hLYWKX__oZdcCY0D20pNqpw8SkiTPOCNOtpqe--QLp4Q@mail.gmail.com/
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Gustavo A. R. Silva and committed by
Rafael J. Wysocki
45b10e3e d07f6ca9

-1
-1
drivers/acpi/sbshc.c
··· 231 231 case ACPI_SBS_BATTERY: 232 232 acpi_os_execute(OSL_NOTIFY_HANDLER, 233 233 acpi_smbus_callback, hc); 234 - default:; 235 234 } 236 235 mutex_unlock(&hc->lock); 237 236 return 0;