Skip to content

Commit b7d2083

Browse files
lorddoskiaskdave
authored andcommitted
btrfs: raid56: don't opencode swap() in __raid_recover_end_io
Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 8302586 commit b7d2083

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fs/btrfs/raid56.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,11 +1862,8 @@ static void __raid_recover_end_io(struct btrfs_raid_bio *rbio)
18621862
}
18631863

18641864
/* make sure our ps and qs are in order */
1865-
if (faila > failb) {
1866-
int tmp = failb;
1867-
failb = faila;
1868-
faila = tmp;
1869-
}
1865+
if (faila > failb)
1866+
swap(faila, failb);
18701867

18711868
/* if the q stripe is failed, do a pstripe reconstruction
18721869
* from the xors.

0 commit comments

Comments
 (0)