X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnetapp.c;h=a4b30cc072efedda9a8e5516b32cda14426b6906;hb=7f97a8c67f141b68c1fa139f36ed5d4fd08e9c26;hp=c294f6964117e0b228d845c36b52a61f5ed50eda;hpb=e2bccaceb05a79592d33cf38b66a195e3ee5ec04;p=collectd.git diff --git a/src/netapp.c b/src/netapp.c index c294f696..a4b30cc0 100644 --- a/src/netapp.c +++ b/src/netapp.c @@ -806,6 +806,7 @@ static int cna_query_wafl (host_config_t *host) /* {{{ */ if (host == NULL) return (EINVAL); + /* If WAFL was not configured, return without doing anything. */ if (host->cfg_wafl == NULL) return (0); @@ -998,6 +999,8 @@ static int cna_query_disk (host_config_t *host) /* {{{ */ if (host == NULL) return (EINVAL); + /* If the user did not configure disk statistics, return without doing + * anything. */ if (host->cfg_disk == NULL) return (0);