OSDN Git Service

net/sched: avoid unused-label warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Mar 2019 20:40:32 +0000 (21:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 21:24:25 +0000 (13:24 -0800)
The label is only used from inside the #ifdef and should be
hidden the same way, to avoid this warning:

net/sched/act_tunnel_key.c: In function 'tunnel_key_init':
net/sched/act_tunnel_key.c:389:1: error: label 'release_tun_meta' defined but not used [-Werror=unused-label]
 release_tun_meta:

Fixes: 41411e2fd6b8 ("net/sched: act_tunnel_key: Add dst_cache support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_tunnel_key.c

index 2a5f215..3beb471 100644 (file)
@@ -392,8 +392,8 @@ release_dst_cache:
 #ifdef CONFIG_DST_CACHE
        if (metadata)
                dst_cache_destroy(&metadata->u.tun_info.dst_cache);
-#endif
 release_tun_meta:
+#endif
        if (metadata)
                dst_release(&metadata->dst);