File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1720,7 +1720,6 @@ static int prepare_binprm(struct linux_binprm *bprm)
1720
1720
*/
1721
1721
int remove_arg_zero (struct linux_binprm * bprm )
1722
1722
{
1723
- int ret = 0 ;
1724
1723
unsigned long offset ;
1725
1724
char * kaddr ;
1726
1725
struct page * page ;
@@ -1731,10 +1730,8 @@ int remove_arg_zero(struct linux_binprm *bprm)
1731
1730
do {
1732
1731
offset = bprm -> p & ~PAGE_MASK ;
1733
1732
page = get_arg_page (bprm , bprm -> p , 0 );
1734
- if (!page ) {
1735
- ret = - EFAULT ;
1736
- goto out ;
1737
- }
1733
+ if (!page )
1734
+ return - EFAULT ;
1738
1735
kaddr = kmap_local_page (page );
1739
1736
1740
1737
for (; offset < PAGE_SIZE && kaddr [offset ];
@@ -1748,8 +1745,7 @@ int remove_arg_zero(struct linux_binprm *bprm)
1748
1745
bprm -> p ++ ;
1749
1746
bprm -> argc -- ;
1750
1747
1751
- out :
1752
- return ret ;
1748
+ return 0 ;
1753
1749
}
1754
1750
EXPORT_SYMBOL (remove_arg_zero );
1755
1751
You can’t perform that action at this time.
0 commit comments