lkml.org 
[lkml]   [2021]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] parisc: using swap() instead of tmp
On Sun, Oct 31, 2021 at 07:10:45PM -0700, Yihao Han wrote:
> @@ -127,16 +127,13 @@ static void __init setup_bootmem(void)
> int j;
>
> for (j = i; j > 0; j--) {
> - physmem_range_t tmp;
>

If you're going to delete that line, you should also delete the
blank line after it.

> if (pmem_ranges[j-1].start_pfn <
> pmem_ranges[j].start_pfn) {
>
> break;
> }
> - tmp = pmem_ranges[j-1];
> - pmem_ranges[j-1] = pmem_ranges[j];
> - pmem_ranges[j] = tmp;
> + swap(pmem_ranges[j-1], pmem_ranges[j]);
> }
> }
>
> --
> 2.17.1
>

\
 
 \ /
  Last update: 2021-11-01 03:25    [W:0.120 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site