ext4: inode: Delete braces for single statements
PATCH 1/1 ext4: inode: Delete braces for single statements
checkpatch.pl warnings - braces are not necessary
Signed-off-by Nicolas Bretz <[email protected]>
--- fs/ext4/inode.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
fs/ext4/inode.c +7 -8
@@ -440,11 +440,11 @@ static void ext4_map_blocks_es_recheck(handle_t *handle,* could be converted. */ down_read (&EXT4_I (inode)->i_data_sem); -if (ext4_test_inode_flag (inode,EXT4_INODE_EXTENTS )) { +if (ext4_test_inode_flag (inode,EXT4_INODE_EXTENTS )) retval =ext4_ext_map_blocks (handle, inode, map,0 ); - }else { +else retval =ext4_ind_map_blocks (handle, inode, map,0 ); - } +up_read ((&EXT4_I (inode)->i_data_sem));/*
@@ -453,7 +453,7 @@ static void ext4_map_blocks_es_recheck(handle_t *handle,*/ if (es_map->m_lblk != map->m_lblk || es_map->m_flags != map->m_flags || - es_map->m_pblk != map->m_pblk) { + es_map->m_pblk != map->m_pblk) printk("ES cache assertion failed for inode: %lu " "es_cached ex [%d/%d/%llu/%x] != " "found ex [%d/%d/%llu/%x] retval %d flags %x\n",
@@ -461,7 +461,6 @@ static void ext4_map_blocks_es_recheck(handle_t *handle, es_map->m_pblk, es_map->m_flags, map->m_lblk, map->m_len, map->m_pblk, map->m_flags, retval, flags); - } }#endif /* ES_AGGRESSIVE_TEST */
@@ -547,11 +546,11 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode,* file system block. */ down_read (&EXT4_I (inode)->i_data_sem); -if (ext4_test_inode_flag (inode,EXT4_INODE_EXTENTS )) { +if (ext4_test_inode_flag (inode,EXT4_INODE_EXTENTS )) retval =ext4_ext_map_blocks (handle, inode, map,0 ); - }else { +else retval =ext4_ind_map_blocks (handle, inode, map,0 ); - } +if (retval >0 ) {unsigned int status;
Signature · 1 line
2.39.5