diff options
| author | David Sterba <dsterba@suse.com> | 2025-04-23 17:57:13 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:48 +0200 |
| commit | ae8ce87165b0ca3d23c88e0767d91b6b1da08732 (patch) | |
| tree | fe87302920cdf60cc722308a2efd5320ba131b24 | |
| parent | btrfs: merge __setup_root() to btrfs_alloc_root() (diff) | |
| download | linux-ae8ce87165b0ca3d23c88e0767d91b6b1da08732.tar.gz linux-ae8ce87165b0ca3d23c88e0767d91b6b1da08732.zip | |
btrfs: drop redundant local variable in raid_wait_write_end_io()
The bio status is read only once, no variable needed for that.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
| -rw-r--r-- | fs/btrfs/raid56.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c index bb9ae0e281d9..b45d8466f607 100644 --- a/fs/btrfs/raid56.c +++ b/fs/btrfs/raid56.c @@ -2291,9 +2291,8 @@ static int rmw_read_wait_recover(struct btrfs_raid_bio *rbio) static void raid_wait_write_end_io(struct bio *bio) { struct btrfs_raid_bio *rbio = bio->bi_private; - blk_status_t err = bio->bi_status; - if (err) + if (bio->bi_status) rbio_update_error_bitmap(rbio, bio); bio_put(bio); if (atomic_dec_and_test(&rbio->stripes_pending)) |
