mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
include/linux/pgtable.h: : remove redundant pte variable
Return value from ptep_get_and_clear_full() directly instead of taking this in another redundant variable. Link: https://lkml.kernel.org/r/202211282107437343474@zte.com.cn Signed-off-by: zhang songyi <zhang.songyi@zte.com.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
3cd629e577
commit
d3a8923358
@@ -425,9 +425,7 @@ static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm,
|
|||||||
unsigned long address, pte_t *ptep,
|
unsigned long address, pte_t *ptep,
|
||||||
int full)
|
int full)
|
||||||
{
|
{
|
||||||
pte_t pte;
|
return ptep_get_and_clear(mm, address, ptep);
|
||||||
pte = ptep_get_and_clear(mm, address, ptep);
|
|
||||||
return pte;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user