Skip to contentSkip to conversation

ACPI / hotplug / PCI: Drop unnecessary parentheses

PATCH In review Mika Westerberg 2 participants 2 messages Aug 29, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI / hotplug / PCI: Drop unnecessary parentheses

There is no need for them and it makes the code look uglier than it should. Remove them.

---
 drivers/pci/hotplug/acpiphp_glue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/hotplug/acpiphp_glue.c +1 -1
index 5ed2dcaa8e27..4e07441660e6 100644
@@ -527,7 +527,7 @@ static void disable_slot(struct acpiphp_slot *slot)
 	list_for_each_entry(func, &slot->funcs, sibling)
 		acpi_bus_trim(func_to_acpi_device(func));
 
-	slot->flags &= (~SLOT_ENABLED);
+	slot->flags &= ~SLOT_ENABLED;
 }
 
 static bool slot_no_hotplug(struct acpiphp_slot *slot)
Signature · 1 line
2.14.1
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · CEST Mika Westerberg

There is no need for them and it makes the code look uglier than it should. Remove them.

Quoted 18 lines
---
 drivers/pci/hotplug/acpiphp_glue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/hotplug/acpiphp_glue.c +1 -1
index 5ed2dcaa8e27..4e07441660e6 100644
@@ -527,7 +527,7 @@ static void disable_slot(struct acpiphp_slot *slot)
 	list_for_each_entry(func, &slot->funcs, sibling)
 		acpi_bus_trim(func_to_acpi_device(func));
 
-	slot->flags &= (~SLOT_ENABLED);
+	slot->flags &= ~SLOT_ENABLED;
 }
 
 static bool slot_no_hotplug(struct acpiphp_slot *slot)