Whamcloud - gitweb
branch: b_new_cmd
authorericm <ericm>
Wed, 18 Oct 2006 23:22:59 +0000 (23:22 +0000)
committerericm <ericm>
Wed, 18 Oct 2006 23:22:59 +0000 (23:22 +0000)
minor fix to quiet compiler warning.

lustre/llite/namei.c

index 2c5fee4..29f3489 100644 (file)
@@ -491,7 +491,8 @@ static struct dentry *ll_lookup_it(struct inode *parent, struct dentry *dentry,
                 rc = ll_fid_md_alloc(ll_i2sbi(parent), &op_data->fid2, &hint);
                 if (rc) {
                         ll_finish_md_op_data(op_data);
-                        RETURN(rc);
+                        LASSERT(rc < 0);
+                        RETURN(ERR_PTR(rc));
                 }
         }