* [PATCH] btrfs: Simplify the calculation of variables
@ 2021-01-27 8:11 Abaci Team
2021-01-27 14:58 ` Josef Bacik
2021-01-28 10:44 ` David Sterba
0 siblings, 2 replies; 3+ messages in thread
From: Abaci Team @ 2021-01-27 8:11 UTC (permalink / raw)
To: clm; +Cc: josef, dsterba, linux-btrfs, linux-kernel, 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 <abaci@linux.alibaba.com>
Suggested-by: Jiapeng Zhong <oswb@linux.alibaba.com>
Signed-off-by: Abaci Team <abaci-bugfix@linux.alibaba.com>
---
fs/btrfs/delayed-inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c
index 70c0340..ec0b50b8 100644
--- a/fs/btrfs/delayed-inode.c
+++ b/fs/btrfs/delayed-inode.c
@@ -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) {
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: Simplify the calculation of variables
2021-01-27 8:11 [PATCH] btrfs: Simplify the calculation of variables Abaci Team
@ 2021-01-27 14:58 ` Josef Bacik
2021-01-28 10:44 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: Josef Bacik @ 2021-01-27 14:58 UTC (permalink / raw)
To: Abaci Team, clm; +Cc: dsterba, linux-btrfs, linux-kernel
On 1/27/21 3:11 AM, Abaci Team wrote:
> 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 <abaci@linux.alibaba.com>
> Suggested-by: Jiapeng Zhong <oswb@linux.alibaba.com>
> Signed-off-by: Abaci Team <abaci-bugfix@linux.alibaba.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Thanks,
Josef
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: Simplify the calculation of variables
2021-01-27 8:11 [PATCH] btrfs: Simplify the calculation of variables Abaci Team
2021-01-27 14:58 ` Josef Bacik
@ 2021-01-28 10:44 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2021-01-28 10:44 UTC (permalink / raw)
To: Abaci Team; +Cc: clm, josef, dsterba, linux-btrfs, linux-kernel
On Wed, Jan 27, 2021 at 04:11:37PM +0800, Abaci Team wrote:
> 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 <abaci@linux.alibaba.com>
> Suggested-by: Jiapeng Zhong <oswb@linux.alibaba.com>
> Signed-off-by: Abaci Team <abaci-bugfix@linux.alibaba.com>
Added to misc-next, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-28 10:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 8:11 [PATCH] btrfs: Simplify the calculation of variables Abaci Team
2021-01-27 14:58 ` Josef Bacik
2021-01-28 10:44 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).