Furquan Shaikh has uploaded this change for review.

View Change

drivers/wifi/generic: Use is_dev_enabled() instead of dev->enabled

This change replaces the checks for dev->enabled with the helper
function `is_dev_enabled()`.

Change-Id: Iacceda396c9300bbfa124e76fb9c99d86313ea0f
Signed-off-by: Furquan Shaikh <furquan@google.com>
---
M src/drivers/wifi/generic/acpi.c
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/46904/1
diff --git a/src/drivers/wifi/generic/acpi.c b/src/drivers/wifi/generic/acpi.c
index 33862d9..4544b46 100644
--- a/src/drivers/wifi/generic/acpi.c
+++ b/src/drivers/wifi/generic/acpi.c
@@ -222,7 +222,7 @@
{
const char *path;

- if (!dev->enabled)
+ if (is_dev_enabled(dev))
return;

path = acpi_device_path(dev);
@@ -247,7 +247,7 @@
{
const char *path;

- if (!dev->enabled)
+ if (!is_dev_enabled(dev))
return;

path = acpi_device_path(dev->bus->dev);

To view, visit change 46904. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iacceda396c9300bbfa124e76fb9c99d86313ea0f
Gerrit-Change-Number: 46904
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan@google.com>
Gerrit-MessageType: newchange