summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_h5.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2020-02-18 09:28:58 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2020-02-18 11:43:56 +0100
commit0830c0a4891f9de009dfaa585dfecefa4c67795b (patch)
tree6e2c807dd4450445c4356e81b1c2ae242061f8bb /drivers/bluetooth/hci_h5.c
parentBluetooth: hci_qca: Bug fixes while collecting controller memory dump (diff)
downloadlinux-0830c0a4891f9de009dfaa585dfecefa4c67795b.tar.xz
linux-0830c0a4891f9de009dfaa585dfecefa4c67795b.zip
Bluetooth: hci_h5: Move variable into local scope
The variable was declared in an unnecessarily broad scope. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_h5.c')
-rw-r--r--drivers/bluetooth/hci_h5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
index 1d8173886852..812a5e975ec1 100644
--- a/drivers/bluetooth/hci_h5.c
+++ b/drivers/bluetooth/hci_h5.c
@@ -786,7 +786,6 @@ static const struct hci_uart_proto h5p = {
static int h5_serdev_probe(struct serdev_device *serdev)
{
- const struct acpi_device_id *match;
struct device *dev = &serdev->dev;
struct h5 *h5;
@@ -801,6 +800,8 @@ static int h5_serdev_probe(struct serdev_device *serdev)
serdev_device_set_drvdata(serdev, h5);
if (has_acpi_companion(dev)) {
+ const struct acpi_device_id *match;
+
match = acpi_match_device(dev->driver->acpi_match_table, dev);
if (!match)
return -ENODEV;