From: huanghua Date: Wed, 16 Aug 2006 09:51:39 +0000 (+0000) Subject: braces are forgotton after condition sentence. X-Git-Tag: v1_8_0_110~486^2~1161 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=8922fba45ee537a0f183e1000a06bd933f5bca58;p=fs%2Flustre-release.git braces are forgotton after condition sentence. --- diff --git a/lustre/fld/fld_cache.c b/lustre/fld/fld_cache.c index 19a2ee2..fd0ee24 100644 --- a/lustre/fld/fld_cache.c +++ b/lustre/fld/fld_cache.c @@ -196,9 +196,10 @@ int fld_cache_insert(struct fld_cache_info *cache, /* check if cache already has the entry with such a seq */ bucket = fld_cache_bucket(cache, seq); hlist_for_each_entry(fldt, scan, bucket, fce_list) { - if (fldt->fce_seq == seq) + if (fldt->fce_seq == seq) { spin_unlock(&cache->fci_lock); RETURN(rc = -EEXIST); + } } spin_unlock(&cache->fci_lock);