Skip to content

Commit

Permalink
Bluetooth: hci_h5: Move variable into local scope
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Feb 18, 2020
1 parent 7c2c3e6 commit 0830c0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/bluetooth/hci_h5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 0830c0a

Please sign in to comment.