Commit 8f67f65d authored by Yihao Han's avatar Yihao Han Committed by Vineet Gupta
Browse files

arc: use swap() to make code cleaner



Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid
opencoding it.

Signed-off-by: default avatarYihao Han <hanyihao@vivo.com>
Signed-off-by: default avatarVineet Gupta <vineetg@rivosinc.com>
parent ca295ffb
Loading
Loading
Loading
Loading
+3 −8
Original line number Original line Diff line number Diff line
@@ -245,14 +245,9 @@ static void swap_eh_frame_hdr_table_entries(void *p1, void *p2, int size)
{
{
	struct eh_frame_hdr_table_entry *e1 = p1;
	struct eh_frame_hdr_table_entry *e1 = p1;
	struct eh_frame_hdr_table_entry *e2 = p2;
	struct eh_frame_hdr_table_entry *e2 = p2;
	unsigned long v;


	swap(e1->start, e2->start);
	v = e1->start;
	swap(e1->fde, e2->fde);
	e1->start = e2->start;
	e2->start = v;
	v = e1->fde;
	e1->fde = e2->fde;
	e2->fde = v;
}
}


static void init_unwind_hdr(struct unwind_table *table,
static void init_unwind_hdr(struct unwind_table *table,