]> git.baikalelectronics.ru Git - kernel.git/commit
fs/jfs: Fix missing error code in lmLogInit()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 1 Jun 2021 11:07:10 +0000 (19:07 +0800)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Tue, 1 Jun 2021 15:29:12 +0000 (10:29 -0500)
commite9d0e452d474fa70d2943d71907d9b32946c8d51
treec56a3e8e3e124d9b4335939245e1d6818af7e048
parentace8450eb7e4d8b1f12c97105ab276194194b60c
fs/jfs: Fix missing error code in lmLogInit()

The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'rc.

Eliminate the follow smatch warning:

fs/jfs/jfs_logmgr.c:1327 lmLogInit() warn: missing error code 'rc'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
fs/jfs/jfs_logmgr.c