netdev: Fix error check.
authorAlex Wang <alexw@nicira.com>
Thu, 25 Sep 2014 18:40:24 +0000 (11:40 -0700)
committerAlex Wang <alexw@nicira.com>
Thu, 25 Sep 2014 21:17:54 +0000 (14:17 -0700)
Reported-by: Daniel Badea <daniel.badea@windriver.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Daniele Di Proietto <ddiproietto@vmware.com>
lib/netdev.c

index 1fd5121..a9ad7d1 100644 (file)
@@ -682,7 +682,7 @@ netdev_set_multiq(struct netdev *netdev, unsigned int n_txq,
                                                 MAX(n_rxq, 1))
              : EOPNOTSUPP);
 
-    if (error != EOPNOTSUPP) {
+    if (error && error != EOPNOTSUPP) {
         VLOG_DBG_RL(&rl, "failed to set tx/rx queue for network device %s:"
                     "%s", netdev_get_name(netdev), ovs_strerror(error));
     }