[linux-next] mm: remove redundant pte variable
Commit Message
From: zhang songyi <zhang.songyi@zte.com.cn>
Return value from ptep_get_and_clear_full() directly instead of taking
this in another redundant variable.
Signed-off-by: zhang songyi <zhang.songyi@zte.com.cn>
---
include/linux/pgtable.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--
2.15.2
@@ -456,9 +456,7 @@ static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm,
unsigned long address, pte_t *ptep,
int full)
{
- pte_t pte;
- pte = ptep_get_and_clear(mm, address, ptep);
- return pte;
+ return ptep_get_and_clear(mm, address, ptep);
}
#endif