Home
last modified time | relevance | path

Searched hist:f2b346e4522c2849a3dc59b7077b8952918ef486 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/
H A Dshmem.cdiff f2b346e4522c2849a3dc59b7077b8952918ef486 Thu Sep 02 16:54:06 CDT 2021 Miaohe Lin <linmiaohe@huawei.com> 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: Linus Torvalds <torvalds@linux-foundation.org>