cleanup: removed unecessary check at a return value
authorYiannis Pericleous <yiannos@loki.fsl.cs.sunysb.edu>
Tue, 29 May 2007 04:43:59 +0000 (00:43 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:02:41 +0000 (19:02 -0400)
fs/unionfs/odf.c

index aa5261c5cd1864de1d9e023cfb722403990ee283..ad395d75cd0e8dc4cb5e360ede216d470f38c2f0 100644 (file)
@@ -672,9 +672,7 @@ struct dentry *__link_add_dirent(struct file *link_file, struct dentry *dentry)
 out:
        set_fs(oldfs);
        kfree(name);
-       if (err)
-               return ERR_PTR(err);
-       return NULL;
+       return ERR_PTR(err);
 }
 
 /*