Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bf0572f authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Richard Weinberger
Browse files

ubifs: use swap macro in swap_dirty_idx



Make use of the swap macro and remove unnecessary variable *t*. This
makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 6cff5732
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -750,10 +750,7 @@ static int cmp_dirty_idx(const struct ubifs_lprops **a,
static void swap_dirty_idx(struct ubifs_lprops **a, struct ubifs_lprops **b,
			   int size)
{
	struct ubifs_lprops *t = *a;

	*a = *b;
	*b = t;
	swap(*a, *b);
}

/**