[PATCH] ARC: dw2 unwind: use swap() to make code cleaner

2021-11-09 Thread cgel . zte
From: Ye Guojin This was found by coccicheck: ./arch/arc/kernel/unwind.c, 251, 22-23, WARNING opportunity for swap() ./arch/arc/kernel/unwind.c, 254, 18-19, WARNING opportunity for swap() Addtionally, adjust the sequence of header files to be arranged in alphabetical order. Reported-by: Zeal Ro

[PATCH] arc: use swap() to make code cleaner

2021-11-09 Thread Yihao Han
Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid opencoding it. Signed-off-by: Yihao Han --- arch/arc/kernel/unwind.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c index 9e28058cdba8..200270a