Whamcloud - gitweb
b=17447
authoryury <yury>
Thu, 23 Oct 2008 11:00:29 +0000 (11:00 +0000)
committeryury <yury>
Thu, 23 Oct 2008 11:00:29 +0000 (11:00 +0000)
r=adilger,deen

- fixes existing and possible memory leaks;
- cleanups.

lustre/obdclass/class_hash.c

index d3eb668..690122e 100644 (file)
@@ -128,8 +128,7 @@ lustre_hash_exit(lustre_hash_t *lh)
         int                   i;
         ENTRY;
 
-        if (!lh)
-                return;
+        LASSERT(lh != NULL);
 
         write_lock(&lh->lh_rwlock);