Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5614570ybv; Tue, 18 Feb 2020 00:29:20 -0800 (PST) X-Google-Smtp-Source: APXvYqy7k+mDNVkyMk3LH39WonBBFsLFv4me6VBDh4d/U85IpJzI87D0QMIQvcEnlmUlClcAqA0p X-Received: by 2002:a05:6808:48b:: with SMTP id z11mr500289oid.38.1582014560498; Tue, 18 Feb 2020 00:29:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582014560; cv=none; d=google.com; s=arc-20160816; b=iB40EyHaUaZTlUcsx9jWrXdRUzZkXIYphpt1X0L8AeARHa7BnlmGDQ6Qjp6Clr2A+t Ct7mb7RYGhHZKtoEJZ6OxWnuEE/4/1voCzRpy9x0Z0dYJleJIBP06T5MQl18N08q4Jst LpIaojg0rLx80XIWZkk/zWjn7airJLCS+IjnIbNZCoMAeoyQY7nnCU3BBagJi5Uyz3DC UWE7CZKDSRA9cTXDyZURR+WyfKKNExFgXpuadUkTwb3XJxKbEcrwTPCaaR4WZNVvO+hN izqiw23M9yjO3+ONT1qMxsnwKMyQqsVzEWgOW/TgvtXy4hSFs2Yx5K40OlvfECxbojIU PMIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=aWU71SeK0R9QpHH3dwSKwmGh1N8GViBNoZTday7Sa44=; b=Pt3QvDqS9/RgBDLVvqiH8GS5WqsNOa7ai/aeYj1vQq8OAys5W0v4Y6RKk3lhclKk8H wsLHQq1OBqFP96JT0G1D25on8/4gdqQAfyd4kC3LQq9XwXLaedHmCAiq+vbzaVS4tnfU xCfAYXcM1O7u/3rJgYlAK/UjvH/Sfe+zdZuZzietuQSe3g/fsfR5EhAHlc++2WWkUE7h 9ut6M2a1K+G+oiMVh7bDIe+sZxRTc06cXgnMdPqSVjumbZgDu6u4cpvsIzZjr4HIwBmq wElK+yAzo2EItDdJE5A+DaMh8W3BlQF34uiQFQmk1T5HQvfAbt0Y76crvW8U5pbBLKcq qsYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si7268782oii.60.2020.02.18.00.29.08; Tue, 18 Feb 2020 00:29:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726291AbgBRI3E (ORCPT + 99 others); Tue, 18 Feb 2020 03:29:04 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:58597 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbgBRI3E (ORCPT ); Tue, 18 Feb 2020 03:29:04 -0500 Received: from localhost.localdomain (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 91F9BCED24 for ; Tue, 18 Feb 2020 09:38:27 +0100 (CET) From: Marcel Holtmann To: linux-bluetooth@vger.kernel.org Subject: [PATCH] Bluetooth: hci_h5: Move variable into local scope Date: Tue, 18 Feb 2020 09:28:58 +0100 Message-Id: <20200218082858.42994-1-marcel@holtmann.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Signed-off-by: Marcel Holtmann --- drivers/bluetooth/hci_h5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.24.1