diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2020-12-15 04:06:07 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-15 21:13:39 +0100 |
commit | 661c7566438119cbf490b0b359ee69a0f9dbaf9a (patch) | |
tree | 9940b14d353b301aeed64667987a63ce37c476e2 /sound/sh | |
parent | mm/swapfile.c: remove unnecessary out label in __swap_duplicate() (diff) | |
download | linux-661c7566438119cbf490b0b359ee69a0f9dbaf9a.tar.xz linux-661c7566438119cbf490b0b359ee69a0f9dbaf9a.zip |
mm/swapfile.c: use memset to fill the swap_map with SWAP_HAS_CACHE
We could use helper memset to fill the swap_map with SWAP_HAS_CACHE instead
of a direct loop here to simplify the code. Also we can remove the local
variable i and map this way.
Link: https://lkml.kernel.org/r/20200921122224.7139-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/sh')
0 files changed, 0 insertions, 0 deletions