Commit 725d502
committed
exec: Simplify remove_arg_zero() error path
We don't need the "out" label any more, so remove "ret" and return
directly on error.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Kees Cook <keescook@chromium.org>
---
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Cc: linux-mm@kvack.org
Cc: linux-fsdevel@vger.kernel.org1 parent 1710742 commit 725d502
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1720 | 1720 | | |
1721 | 1721 | | |
1722 | 1722 | | |
1723 | | - | |
1724 | 1723 | | |
1725 | 1724 | | |
1726 | 1725 | | |
| |||
1731 | 1730 | | |
1732 | 1731 | | |
1733 | 1732 | | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
| 1733 | + | |
| 1734 | + | |
1738 | 1735 | | |
1739 | 1736 | | |
1740 | 1737 | | |
| |||
1748 | 1745 | | |
1749 | 1746 | | |
1750 | 1747 | | |
1751 | | - | |
1752 | | - | |
| 1748 | + | |
1753 | 1749 | | |
1754 | 1750 | | |
1755 | 1751 | | |
| |||
0 commit comments