Re: [PATCH] jfs: Remove unneeded return variable

2021-02-04 Thread Dave Kleikamp
On 2/3/21 9:39 PM, Yang Li wrote: This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./fs/jfs/jfs_txnmgr.c:1370:5-7: Unneeded variable: "rc". Return "0" on line 1417 Looks good. I wonder if we should take it a step

[PATCH] jfs: Remove unneeded return variable

2021-02-03 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./fs/jfs/jfs_txnmgr.c:1370:5-7: Unneeded variable: "rc". Return "0" on line 1417 Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/jfs/jfs_txnmgr.c | 6 ++ 1