Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Marcel Holtmann and committed by
Johan Hedberg
0830c0a4 7c2c3e63

+2 -1
+2 -1
drivers/bluetooth/hci_h5.c
··· 786 786 787 787 static int h5_serdev_probe(struct serdev_device *serdev) 788 788 { 789 - const struct acpi_device_id *match; 790 789 struct device *dev = &serdev->dev; 791 790 struct h5 *h5; 792 791 ··· 800 801 serdev_device_set_drvdata(serdev, h5); 801 802 802 803 if (has_acpi_companion(dev)) { 804 + const struct acpi_device_id *match; 805 + 803 806 match = acpi_match_device(dev->driver->acpi_match_table, dev); 804 807 if (!match) 805 808 return -ENODEV;