cleaner odf_is_new function
authorYiannis Pericleous <yiannos@loki.fsl.cs.sunysb.edu>
Fri, 25 May 2007 04:02:12 +0000 (00:02 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:02:34 +0000 (19:02 -0400)
fs/unionfs/odf.c

index b12e66a9b5ecda6e85e04188ecea3e07716f1fe7..7a45279dc18f31d5e3e7e19477d9ffb5d54f2847 100644 (file)
@@ -1523,9 +1523,7 @@ int odf_is_new(struct odf_sb_info *osi)
 {
        if (!osi->sb)
                return 1;
-       else if (unlikely(!osi->sb->d_inode))
-               return 1;
-       return 0;
+       return !osi->sb->d_inode;
 }
 
 /*