Skip to content

Commit 0830c0a

Browse files
holtmannjhedberg
authored andcommitted
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>
1 parent 7c2c3e6 commit 0830c0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/bluetooth/hci_h5.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,6 @@ static const struct hci_uart_proto h5p = {
786786

787787
static int h5_serdev_probe(struct serdev_device *serdev)
788788
{
789-
const struct acpi_device_id *match;
790789
struct device *dev = &serdev->dev;
791790
struct h5 *h5;
792791

@@ -801,6 +800,8 @@ static int h5_serdev_probe(struct serdev_device *serdev)
801800
serdev_device_set_drvdata(serdev, h5);
802801

803802
if (has_acpi_companion(dev)) {
803+
const struct acpi_device_id *match;
804+
804805
match = acpi_match_device(dev->driver->acpi_match_table, dev);
805806
if (!match)
806807
return -ENODEV;

0 commit comments

Comments
 (0)