X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fzfs_arc.c;h=3f5c398fdc889f435b008a686bbaf1182df12f38;hb=23ac8e592cd64c424fddce842baea300ff8a3a85;hp=c5493d83a60b01ddef68e52eba84c6805106f25d;hpb=4103105fb43cd72294f165b2541540b3a8a99532;p=collectd.git diff --git a/src/zfs_arc.c b/src/zfs_arc.c index c5493d83..3f5c398f 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -90,12 +90,10 @@ static long long get_zfs_value(kstat_t *ksp, const char *key) static void free_zfs_values (kstat_t *ksp) { - llentry_t *e; - if (ksp == NULL) return; - for (e = llist_head (ksp); e != NULL; e = e->next) + for (llentry_t *e = llist_head (ksp); e != NULL; e = e->next) { sfree (e->key); sfree (e->value);