Signed-off-by: Phil Sutter <p...@nwl.cc>
---
 misc/ss.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/misc/ss.c b/misc/ss.c
index d546a00eb2c24..c3a5148e05013 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -580,21 +580,19 @@ struct slabstat {
 
 static struct slabstat slabstat;
 
-static const char *slabstat_ids[] = {
-
-       "sock",
-       "tcp_bind_bucket",
-       "tcp_tw_bucket",
-       "tcp_open_request",
-       "skbuff_head_cache",
-};
-
 static int get_slabstat(struct slabstat *s)
 {
        char buf[256];
        FILE *fp;
        int cnt;
        static int slabstat_valid;
+       static const char * const slabstat_ids[] = {
+               "sock",
+               "tcp_bind_bucket",
+               "tcp_tw_bucket",
+               "tcp_open_request",
+               "skbuff_head_cache",
+       };
 
        if (slabstat_valid)
                return 0;
-- 
2.10.0

Reply via email to