Commit 0830c0a4 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Johan Hedberg

Bluetooth: hci_h5: Move variable into local scope

The variable was declared in an unnecessarily broad scope.
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 7c2c3e63
...@@ -786,7 +786,6 @@ static const struct hci_uart_proto h5p = { ...@@ -786,7 +786,6 @@ static const struct hci_uart_proto h5p = {
static int h5_serdev_probe(struct serdev_device *serdev) static int h5_serdev_probe(struct serdev_device *serdev)
{ {
const struct acpi_device_id *match;
struct device *dev = &serdev->dev; struct device *dev = &serdev->dev;
struct h5 *h5; struct h5 *h5;
...@@ -801,6 +800,8 @@ static int h5_serdev_probe(struct serdev_device *serdev) ...@@ -801,6 +800,8 @@ static int h5_serdev_probe(struct serdev_device *serdev)
serdev_device_set_drvdata(serdev, h5); serdev_device_set_drvdata(serdev, h5);
if (has_acpi_companion(dev)) { if (has_acpi_companion(dev)) {
const struct acpi_device_id *match;
match = acpi_match_device(dev->driver->acpi_match_table, dev); match = acpi_match_device(dev->driver->acpi_match_table, dev);
if (!match) if (!match)
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment