Skip to contentSkip to conversation

fs: exec: Remove unnecessary ‘NULL’ values from vma

PATCH New Li kunyu 1 participant 1 message Dec 5, 2023

Subsystems (2)
lore
Share & tools
lore

Li kunyu

author
#0 lore raw

PATCH 1/1 fs: exec: Remove unnecessary ‘NULL’ values from vma

vma is assigned first, so it does not need to initialize the assignment.

---
 fs/exec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/exec.c +1 -1
index b01d2d40ace03..cae37330e7442 100644
@@ -253,7 +253,7 @@ static void flush_arg_page(struct linux_binprm *bprm, unsigned long pos,
 static int __bprm_mm_init(struct linux_binprm *bprm)
 {
 	int err;
-	struct vm_area_struct *vma = NULL;
+	struct vm_area_struct *vma;
 	struct mm_struct *mm = bprm->mm;
 
 	bprm->vma = vma = vm_area_alloc(mm);
Signature · 1 line
2.18.2