staging: unisys: make visorbus_dev_groups static
authorMichał Kępień <kernel@kempniu.pl>
Tue, 11 Aug 2015 12:07:00 +0000 (14:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 01:56:54 +0000 (18:56 -0700)
visorbus_dev_groups is not referenced outside visorbus_main.c, so it can
be declared static.

Found using sparse.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c

index ac39febdac55eaa2ddfe3065a5e9d172125fb0b2..2309f5f2b238e574db07c80e509d815a98c643c1 100644 (file)
@@ -96,7 +96,7 @@ static const struct attribute_group visorbus_dev_group = {
        .attrs = visorbus_dev_attrs,
 };
 
-const struct attribute_group *visorbus_dev_groups[] = {
+static const struct attribute_group *visorbus_dev_groups[] = {
        &visorbus_dev_group,
        NULL,
 };