Messages in this thread | | | Date | Mon, 23 Nov 2020 18:58:26 +0100 | From | David Sterba <> | Subject | Re: [PATCH] btrfs: remove the useless value assignment in block_rsv_release_bytes |
| |
On Tue, Nov 17, 2020 at 11:17:17AM +0800, kaixuxia wrote: > > > On 2020/11/16 23:15, David Sterba wrote: > > On Sun, Nov 15, 2020 at 02:39:23PM +0800, xiakaixu1987@gmail.com wrote: > >> From: Kaixu Xia <kaixuxia@tencent.com> > >> > >> The variable qgroup_to_release is overwritten by the following if/else > >> statement before it is used, so this assignment is useless. Remove it. > > > > Again this lacks explanation why removing it is correct. > > > Actually this assignment is redundant because the variable qgroup_to_release > has been overwritten before it is used. The logic like this,
That's obvious and I did not mean that. Have you checked in which commit the variable became unused and why? It's possible that it was indeed just an oversight, but if not it could point to a bug.
| |