btrfs: Simplify the calculation of variables
PATCH 1/1 btrfs: Simplify the calculation of variables
Fix the following coccicheck warnings:
./fs/btrfs/delayed-inode.c:1157:39-41: WARNING !A || A && B is equivalent to !A || B.
Reported-by Abaci Robot <[email protected]>
Suggested-by Jiapeng Zhong <[email protected]>
Signed-off-by Abaci Team <[email protected]>
--- fs/btrfs/delayed-inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/delayed-inode.c +1 -1
@@ -1154,7 +1154,7 @@ static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, int nr) delayed_root = fs_info->delayed_root; curr_node =btrfs_first_delayed_node (delayed_root); -while (curr_node && (!count || (count && nr--))) { +while (curr_node && (!count || nr--)) { ret =__btrfs_commit_inode_delayed_items (trans, path, curr_node);if (ret) {
Signature · 1 line
1.8.3.1
Quoted 8 lines · Abaci Team
Fix the following coccicheck warnings:
./fs/btrfs/delayed-inode.c:1157:39-41: WARNING !A || A && B is equivalent to !A || B.
Reported-by Abaci Robot <[email protected]>Suggested-by Jiapeng Zhong <[email protected]>Signed-off-by Abaci Team <[email protected]>
Reviewed-by Josef Bacik <[email protected]>
Thanks,
Josef
Quoted 8 lines · Abaci Team
Fix the following coccicheck warnings:
./fs/btrfs/delayed-inode.c:1157:39-41: WARNING !A || A && B is equivalent to !A || B.
Reported-by Abaci Robot <[email protected]>Suggested-by Jiapeng Zhong <[email protected]>Signed-off-by Abaci Team <[email protected]>
Added to misc-next, thanks.