diff mbox series

soc: bcm: brcmstb: remove unused variable 'brcmstb_machine_match'

Message ID 1617179999-71706-1-git-send-email-jiapeng.chong@linux.alibaba.com (mailing list archive)
State New, archived
Headers show
Series soc: bcm: brcmstb: remove unused variable 'brcmstb_machine_match' | expand

Commit Message

Jiapeng Chong March 31, 2021, 8:39 a.m. UTC
Fix the following clang warning:

drivers/soc/bcm/brcmstb/common.c:17:34: warning: unused variable
'brcmstb_machine_match' [-Wunused-const-variable].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/soc/bcm/brcmstb/common.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Florian Fainelli March 31, 2021, 6:14 p.m. UTC | #1
On Wed, 31 Mar 2021 16:39:59 +0800, Jiapeng Chong <jiapeng.chong@linux.alibaba.com> wrote:
> Fix the following clang warning:
> 
> drivers/soc/bcm/brcmstb/common.c:17:34: warning: unused variable
> 'brcmstb_machine_match' [-Wunused-const-variable].
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---

Applied to drivers/next, thanks!
--
Florian
diff mbox series

Patch

diff --git a/drivers/soc/bcm/brcmstb/common.c b/drivers/soc/bcm/brcmstb/common.c
index e87dfc6..2a01088 100644
--- a/drivers/soc/bcm/brcmstb/common.c
+++ b/drivers/soc/bcm/brcmstb/common.c
@@ -14,11 +14,6 @@ 
 static u32 family_id;
 static u32 product_id;
 
-static const struct of_device_id brcmstb_machine_match[] = {
-	{ .compatible = "brcm,brcmstb", },
-	{ }
-};
-
 u32 brcmstb_get_family_id(void)
 {
 	return family_id;