Skip to contentSkip to conversation

Bluetooth: hci_h5: Move variable into local scope

PATCH Applied Marcel Holtmann 2 participants 3 messages Feb 18, 2020 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: hci_h5: Move variable into local scope

---
 drivers/bluetooth/hci_h5.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/bluetooth/hci_h5.c +2 -1
index 1d8173886852..812a5e975ec1 100644
@@ -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;
Signature · 1 line
2.24.1
#1 lore raw

Hi Marcel,

Quoted 4 lines · Marcel Holtmann
---
 drivers/bluetooth/hci_h5.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to bluetooth-next. I went and added a short body to the commit message as well, since I think we generally require that for kernel commits.

Johan

author maintainer
#2 lore raw

Hi Johan,

Quoted 8 lines
Quoted 4 lines

---
drivers/bluetooth/hci_h5.c | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)

Applied to bluetooth-next. I went and added a short body to the commit message as well, since I think we generally require that for kernel commits.

great. Thanks.

I purposely decided to skip that since it was too obvious what this patch was doing.

Regards

Marcel