]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/zrlock.c
Fix gcc c90 compliance warnings
[mirror_zfs.git] / module / zfs / zrlock.c
index ec94b08555be99e383c3a0a1f705dc3604bc354f..36134431f69404c4f3a987fa3e56476d3369c1c0 100644 (file)
@@ -163,9 +163,11 @@ zrl_exit(zrlock_t *zrl)
 int
 zrl_refcount(zrlock_t *zrl)
 {
+       int n;
+
        ASSERT(zrl->zr_refcount > ZRL_DESTROYED);
 
-       int n = (int)zrl->zr_refcount;
+       n = (int)zrl->zr_refcount;
        return (n <= 0 ? 0 : n);
 }