Skip to contentSkip to conversation

mm: Remove unnecessary goto out in _swap_info_get()

PATCH Applied Miaohe Lin 1 participant 1 message Sep 30, 2020

Subsystems (2)
lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 mm: Remove unnecessary goto out in _swap_info_get()

It's unnecessary to goto the out label while out label is just below.

---
 mm/swapfile.c | 1 -
 1 file changed, 1 deletion(-)
mm/swapfile.c +0 -1
index 4522b458a814..edc96e83c372 100644
@@ -1182,7 +1182,6 @@ static struct swap_info_struct *_swap_info_get(swp_entry_t entry)
 
 bad_free:
 	pr_err("swap_info_get: %s%08lx\n", Unused_offset, entry.val);
-	goto out;
 out:
 	return NULL;
 }
Signature · 1 line
2.19.1