diff options
| author | John Hubbard <[email protected]> | 2021-11-05 13:37:16 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-11-06 13:30:34 -0700 |
| commit | 20b7fee738d65e50ca00e325ae27ee3efaa819f6 (patch) | |
| tree | 84677ddddabc70db5a909a82c12c16b1fe1c8861 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | f8ee8909ac818e555ef18b57b0ee4b9fd0478b82 (diff) | |
mm/gup: further simplify __gup_device_huge()
Commit 6401c4eb57f9 ("mm: gup: fix potential pgmap refcnt leak in
__gup_device_huge()") simplified the return paths, but didn't go quite
far enough, as discussed in [1].
Remove the "ret" variable entirely, because there is enough information
already available to provide the return value.
[1] https://lore.kernel.org/r/CAHk-=wgQTRX=5SkCmS+zfmpqubGHGJvXX_HgnPG8JSpHKHBMeg@mail.gmail.com
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: John Hubbard <[email protected]>
Suggested-by: Linus Torvalds <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Cc: Miaohe Lin <[email protected]>
Cc: Claudio Imbrenda <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions