From edfbe9f7bc340fb696b6f3a20fa47a536610eb38 Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@nicira.com>
Date: Fri, 26 Apr 2013 11:13:04 -0700
Subject: [PATCH] netdev: Make 'smap' variable const in netdev_set_qos().

This makes this code more obviously thread-safe.

Signed-off-by: Ben Pfaff <blp@nicira.com>
---
 lib/netdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/netdev.c b/lib/netdev.c
index 156984ad1..434e2572e 100644
--- a/lib/netdev.c
+++ b/lib/netdev.c
@@ -1115,7 +1115,7 @@ netdev_set_qos(struct netdev *netdev,
 
     if (class->set_qos) {
         if (!details) {
-            static struct smap empty = SMAP_INITIALIZER(&empty);
+            static const struct smap empty = SMAP_INITIALIZER(&empty);
             details = &empty;
         }
         return class->set_qos(netdev, type, details);
-- 
2.47.0