Skip to content

Commit

Permalink
f2fs: Fix bool initialization/comparison
Browse files Browse the repository at this point in the history
Bool initializations should use true and false. Bool tests don't need
comparisons.

Signed-off-by: Thomas Meyer <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
thomasmey authored and Jaegeuk Kim committed Oct 26, 2017
1 parent cf5c759 commit ebf7c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/f2fs/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ int f2fs_submit_page_write(struct f2fs_io_info *fio)

bio_page = fio->encrypted_page ? fio->encrypted_page : fio->page;

/* set submitted = 1 as a return value */
fio->submitted = 1;
/* set submitted = true as a return value */
fio->submitted = true;

inc_page_count(sbi, WB_DATA_TYPE(bio_page));

Expand Down

0 comments on commit ebf7c52

Please sign in to comment.