summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/wmi.c
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2021-09-04 19:54:59 +0200
committerHans de Goede <hdegoede@redhat.com>2021-09-14 12:26:00 +0200
commit3ecace310f4dfd2b7ce666092f41c2e5ad60617c (patch)
treefd5ab6a7ca87883a9c66d3de16a300937be601f7 /drivers/platform/x86/wmi.c
parentplatform/x86: wmi: fix kernel doc (diff)
downloadlinux-3ecace310f4dfd2b7ce666092f41c2e5ad60617c.tar.xz
linux-3ecace310f4dfd2b7ce666092f41c2e5ad60617c.zip
platform/x86: wmi: fix checkpatch warnings
Fix the following two checkpatch warnings: * "space required before the open parenthesis '('" * "that open brace { should be on the previous line" Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Link: https://lore.kernel.org/r/20210904175450.156801-3-pobrn@protonmail.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/wmi.c')
-rw-r--r--drivers/platform/x86/wmi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index 0b931629f0b0..73ed17a53af5 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -488,7 +488,7 @@ static void wmi_notify_debug(u32 value, void *context)
return;
pr_info("DEBUG Event ");
- switch(obj->type) {
+ switch (obj->type) {
case ACPI_TYPE_BUFFER:
pr_cont("BUFFER_TYPE - length %d\n", obj->buffer.length);
break;
@@ -1277,8 +1277,7 @@ static void acpi_wmi_notify_handler(acpi_handle handle, u32 event,
if (wblock->acpi_device->handle == handle &&
(block->flags & ACPI_WMI_EVENT) &&
- (block->notify_id == event))
- {
+ (block->notify_id == event)) {
found_it = true;
break;
}