Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dm integrity: convert to use le64_add_cpu()
Convert cpu_to_le64(le64_to_cpu(E1) + E2) to use le64_add_cpu().

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
  • Loading branch information
Liu Shixin authored and intel-lab-lkp committed Sep 14, 2020
1 parent d5b2251 commit d0fe722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-integrity.c
Expand Up @@ -3696,7 +3696,7 @@ static int create_journal(struct dm_integrity_c *ic, char **error)
retest_commit_id:
for (j = 0; j < i; j++) {
if (ic->commit_ids[j] == ic->commit_ids[i]) {
ic->commit_ids[i] = cpu_to_le64(le64_to_cpu(ic->commit_ids[i]) + 1);
le64_add_cpu(&ic->commit_ids[i], 1);
goto retest_commit_id;
}
}
Expand Down

0 comments on commit d0fe722

Please sign in to comment.