diff mbox series

[1/1] PM: hibernate: remove leading spaces before tabs

Message ID 20210608081314.13435-1-thunder.leizhen@huawei.com
State Accepted
Commit 480f0de68caddfe336b8cc0c74a40328779940d3
Headers show
Series [1/1] PM: hibernate: remove leading spaces before tabs | expand

Commit Message

Leizhen (ThunderTown) June 8, 2021, 8:13 a.m. UTC
1) Run the following command to find and remove the leading spaces before
   tabs:
   find kernel/power/ -type f | xargs sed -r -i 's/^[ ]+\t/\t/'
2) Manually check and correct if necessary

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

---
 kernel/power/snapshot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.25.1

Comments

Rafael J. Wysocki June 11, 2021, 4:53 p.m. UTC | #1
On Tue, Jun 8, 2021 at 10:13 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
>

> 1) Run the following command to find and remove the leading spaces before

>    tabs:

>    find kernel/power/ -type f | xargs sed -r -i 's/^[ ]+\t/\t/'

> 2) Manually check and correct if necessary

>

> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

> ---

>  kernel/power/snapshot.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c

> index af507c8c895b..f7a986078213 100644

> --- a/kernel/power/snapshot.c

> +++ b/kernel/power/snapshot.c

> @@ -1146,7 +1146,7 @@ int create_basic_memory_bitmaps(void)

>   Free_second_object:

>         kfree(bm2);

>   Free_first_bitmap:

> -       memory_bm_free(bm1, PG_UNSAFE_CLEAR);

> +       memory_bm_free(bm1, PG_UNSAFE_CLEAR);

>   Free_first_object:

>         kfree(bm1);

>         return -ENOMEM;

> --


Applied as 5.14 material, thanks!
diff mbox series

Patch

diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index af507c8c895b..f7a986078213 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -1146,7 +1146,7 @@  int create_basic_memory_bitmaps(void)
  Free_second_object:
 	kfree(bm2);
  Free_first_bitmap:
- 	memory_bm_free(bm1, PG_UNSAFE_CLEAR);
+	memory_bm_free(bm1, PG_UNSAFE_CLEAR);
  Free_first_object:
 	kfree(bm1);
 	return -ENOMEM;