projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d6c211
)
ext3: remove unneeded check in ext3_ordered_writepage()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 21 Feb 2014 08:58:54 +0000
(11:58 +0300)
committer
Jan Kara
<jack@suse.cz>
Mon, 3 Mar 2014 10:31:00 +0000
(11:31 +0100)
We already know "ret" is zero so there is no need to do:
if (!ret)
ret = err;
We can just assign ret directly instead.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/inode.c
patch
|
blob
|
history
diff --git
a/fs/ext3/inode.c
b/fs/ext3/inode.c
index 384b6ebb655f1aefa21e53b6b28f6598c40db1b2..491f022c476a880289309a7d0e4b6056d8132a22 100644
(file)
--- a/
fs/ext3/inode.c
+++ b/
fs/ext3/inode.c
@@
-1673,12
+1673,9
@@
static int ext3_ordered_writepage(struct page *page,
* block_write_full_page() succeeded. Otherwise they are unmapped,
* and generally junk.
*/
- if (ret == 0)
{
-
err
= walk_page_buffers(handle, page_bufs, 0, PAGE_CACHE_SIZE,
+ if (ret == 0)
+
ret
= walk_page_buffers(handle, page_bufs, 0, PAGE_CACHE_SIZE,
NULL, journal_dirty_data_fn);
- if (!ret)
- ret = err;
- }
walk_page_buffers(handle, page_bufs, 0,
PAGE_CACHE_SIZE, NULL, bput_one);
err = ext3_journal_stop(handle);