[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220201140547.GO14046@twin.jikos.cz>
Date: Tue, 1 Feb 2022 15:05:47 +0100
From: David Sterba <dsterba@...e.cz>
To: Muhammad Usama Anjum <usama.anjum@...labora.com>
Cc: Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
David Sterba <dsterba@...e.com>, Qu Wenruo <wqu@...e.com>,
kernel@...labora.com, kernel-janitors@...r.kernel.org,
linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] btrfs: Remove dead code
On Fri, Jan 28, 2022 at 04:50:27PM +0500, Muhammad Usama Anjum wrote:
> Local variable stop_loop is assigned only once, to a constant value 0,
> making it effectively constant through out its scope. This constant
> variable is guarding deadcode. The two if conditions can never be true.
> Remove the variable and make the logic simple.
>
> Fixes: 585f784357d8 ("btrfs: use scrub_simple_mirror() to handle RAID56 data stripe scrub")
Thanks, this patch is still only in for-next so the change can be folded
into it.
Powered by blists - more mailing lists