udf: remove else after return in __load_block_bitmap()
authorFabian Frederick <fabf@skynet.be>
Tue, 10 Mar 2015 20:44:33 +0000 (21:44 +0100)
committerJan Kara <jack@suse.cz>
Sat, 14 Mar 2015 06:39:32 +0000 (07:39 +0100)
else after return is not needed.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/balloc.c

index 02948f04da56ea26ad940ad0332fcbe7fa0f0eca..0ee257a32e4563af1a350da4631d94c5c4d6511a 100644 (file)
@@ -63,15 +63,14 @@ static int __load_block_bitmap(struct super_block *sb,
                          block_group, nr_groups);
        }
 
-       if (bitmap->s_block_bitmap[block_group]) {
+       if (bitmap->s_block_bitmap[block_group])
                return block_group;
-       } else {
-               retval = read_block_bitmap(sb, bitmap, block_group,
-                                          block_group);
-               if (retval < 0)
-                       return retval;
-               return block_group;
-       }
+
+       retval = read_block_bitmap(sb, bitmap, block_group, block_group);
+       if (retval < 0)
+               return retval;
+
+       return block_group;
 }
 
 static inline int load_block_bitmap(struct super_block *sb,