diff options
author | Miaohe Lin | 2021-09-02 14:54:06 -0700 |
---|---|---|
committer | Linus Torvalds | 2021-09-03 09:58:11 -0700 |
commit | f2b346e4522c2849a3dc59b7077b8952918ef486 (patch) | |
tree | d240d8b7fa83c8432ea94f8fd9ff4a4e1c39d997 /drivers/i3c/device.c | |
parent | bf11b9a8e9a93c1fc0ebfc2929622d5cf7d43888 (diff) |
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>
Diffstat (limited to 'drivers/i3c/device.c')
0 files changed, 0 insertions, 0 deletions