]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Remove use of undefined suppress_warning variable
authorEdgar Fuß <ef@math.uni-bonn.de>
Wed, 8 Jul 2020 16:30:39 +0000 (18:30 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Jul 2020 16:30:39 +0000 (18:30 +0200)
src/nfs.c

index 3ddab6ab452b458baf196e3ecb93623166e02a3f..f19bc3e7d1f81e0d8d51ecc7e5568d220d556f88 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
@@ -622,19 +622,14 @@ static int nfs_read(void) {
 
   /* NetBSD reports v2 statistics mapped to v3 and doen't yet support v4 */
   if (report_v2) {
-    if (!suppress_warning) {
-      WARNING(
-          "nfs plugin: NFSv2 statistics have been requested "
-          "but they are mapped to NFSv3 statistics in the kernel on NetBSD.");
-    }
+    WARNING("nfs plugin: NFSv2 statistics have been requested "
+            "but they are mapped to NFSv3 statistics in the kernel on NetBSD.");
     return 0;
   }
 
   if (report_v4) {
-    if (!suppress_warning) {
-      WARNING("nfs plugin: NFSv4 statistics have been requested "
-              "but they are not yet supported on NetBSD.");
-    }
+    WARNING("nfs plugin: NFSv4 statistics have been requested "
+            "but they are not yet supported on NetBSD.");
     return 0;
   }