aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/balloc.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-12-01 13:06:10 +0100
committerJan Kara <jack@suse.cz>2009-04-02 12:29:51 +0200
commite650b94addfbf072952df762e6f1c6c9e26c4f9c (patch)
tree180ad47627389433202541891d76d91ab041930c /fs/udf/balloc.c
parent30930554f23511645ad9cfb89792219bf398b654 (diff)
downloadkernel_samsung_crespo-e650b94addfbf072952df762e6f1c6c9e26c4f9c.zip
kernel_samsung_crespo-e650b94addfbf072952df762e6f1c6c9e26c4f9c.tar.gz
kernel_samsung_crespo-e650b94addfbf072952df762e6f1c6c9e26c4f9c.tar.bz2
udf: fix sparse warnings:
Fix sparse warnings: fs/udf/balloc.c:843:3: warning: returning void-valued expression fs/udf/balloc.c:847:3: warning: returning void-valued expression fs/udf/balloc.c:851:3: warning: returning void-valued expression fs/udf/balloc.c:855:3: warning: returning void-valued expression Reported-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/balloc.c')
-rw-r--r--fs/udf/balloc.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/fs/udf/balloc.c b/fs/udf/balloc.c
index 94d876a..58be702 100644
--- a/fs/udf/balloc.c
+++ b/fs/udf/balloc.c
@@ -840,23 +840,17 @@ void udf_free_blocks(struct super_block *sb, struct inode *inode,
struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition];
if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_BITMAP) {
- return udf_bitmap_free_blocks(sb, inode,
- map->s_uspace.s_bitmap,
- bloc, offset, count);
+ udf_bitmap_free_blocks(sb, inode, map->s_uspace.s_bitmap,
+ bloc, offset, count);
} else if (map->s_partition_flags & UDF_PART_FLAG_UNALLOC_TABLE) {
- return udf_table_free_blocks(sb, inode,
- map->s_uspace.s_table,
- bloc, offset, count);
+ udf_table_free_blocks(sb, inode, map->s_uspace.s_table,
+ bloc, offset, count);
} else if (map->s_partition_flags & UDF_PART_FLAG_FREED_BITMAP) {
- return udf_bitmap_free_blocks(sb, inode,
- map->s_fspace.s_bitmap,
- bloc, offset, count);
+ udf_bitmap_free_blocks(sb, inode, map->s_fspace.s_bitmap,
+ bloc, offset, count);
} else if (map->s_partition_flags & UDF_PART_FLAG_FREED_TABLE) {
- return udf_table_free_blocks(sb, inode,
- map->s_fspace.s_table,
- bloc, offset, count);
- } else {
- return;
+ udf_table_free_blocks(sb, inode, map->s_fspace.s_table,
+ bloc, offset, count);
}
}