]> git.proxmox.com Git - mirror_zfs.git/commitdiff
zdb: zdb_decompress_block: don't needlessly set buf
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Thu, 3 Jun 2021 16:29:45 +0000 (18:29 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Jun 2021 03:58:23 +0000 (20:58 -0700)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12187

cmd/zdb/zdb.c

index d6c304266ffc3a3d448bedd5477a341e0b612b7c..5017a0e7d5d9026cd22a2f7ef9befc29002d08ae 100644 (file)
@@ -7969,7 +7969,6 @@ zdb_decompress_block(abd_t *pabd, void *buf, void *lbuf, uint64_t lsize,
        if (lsize > maxlsize) {
                exceeded = B_TRUE;
        }
-       buf = lbuf;
        if (*cfuncp == ZIO_COMPRESS_ZLE) {
                printf("\nZLE decompression was selected. If you "
                    "suspect the results are wrong,\ntry avoiding ZLE "