]> www.infradead.org Git - users/jedix/linux-maple.git/commit
shmem: remove unneeded variable ret
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 23 Aug 2021 23:59:11 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:33:45 +0000 (09:33 +1000)
commit416528dd9b4fca366e7bf215ef500bedb2a11399
tree8f9de113f58d5ec3537c3287d5fa2ac100fe5c56
parent055daea20f227766a680c27094e1885178820ae7
shmem: remove unneeded variable ret

Patch series "Cleanups for shmem".

This series contains cleanups to remove unneeded variable, header file,
function forward declaration and so on.  More details can be found in the
respective changelogs.

This patch (of 4):

The local variable ret is always equal to -ENOMEM and never touched.  So
remove it and return -ENOMEM directly to simplify the code.

Link: https://lkml.kernel.org/r/20210812120350.49801-1-linmiaohe@huawei.com
Link: https://lkml.kernel.org/r/20210812120350.49801-2-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: Stephen Rothwell <sfr@canb.auug.org.au>
mm/shmem.c