mm/mlock: minor coding style tweaks
diff mbox series

Message ID 1613956588-2453-1-git-send-email-daizhiyuan@phytium.com.cn
State In Next
Commit 1baea0d44619178dc7dec90260d8935653a012f6
Headers show
Series
  • mm/mlock: minor coding style tweaks
Related show

Commit Message

Zhiyuan Dai Feb. 22, 2021, 1:16 a.m. UTC
This patch move the pointer location to fix coding style issues,
improve code reading.

Signed-off-by: Zhiyuan Dai <daizhiyuan@phytium.com.cn>
---
 mm/mlock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/mm/mlock.c b/mm/mlock.c
index 55b3b36..f6e26c2 100644
--- a/mm/mlock.c
+++ b/mm/mlock.c
@@ -560,7 +560,7 @@  static int apply_vma_lock_flags(unsigned long start, size_t len,
 				vm_flags_t flags)
 {
 	unsigned long nstart, end, tmp;
-	struct vm_area_struct * vma, * prev;
+	struct vm_area_struct *vma, *prev;
 	int error;
 
 	VM_BUG_ON(offset_in_page(start));
@@ -738,7 +738,7 @@  static __must_check int do_mlock(unsigned long start, size_t len, vm_flags_t fla
  */
 static int apply_mlockall_flags(int flags)
 {
-	struct vm_area_struct * vma, * prev = NULL;
+	struct vm_area_struct *vma, *prev = NULL;
 	vm_flags_t to_add = 0;
 
 	current->mm->def_flags &= VM_LOCKED_CLEAR_MASK;