zdb: zdb_decompress_block: don't needlessly set buf
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
This commit is contained in:
parent
77f3b67520
commit
4f1009face
|
@ -7969,7 +7969,6 @@ zdb_decompress_block(abd_t *pabd, void *buf, void *lbuf, uint64_t lsize,
|
||||||
if (lsize > maxlsize) {
|
if (lsize > maxlsize) {
|
||||||
exceeded = B_TRUE;
|
exceeded = B_TRUE;
|
||||||
}
|
}
|
||||||
buf = lbuf;
|
|
||||||
if (*cfuncp == ZIO_COMPRESS_ZLE) {
|
if (*cfuncp == ZIO_COMPRESS_ZLE) {
|
||||||
printf("\nZLE decompression was selected. If you "
|
printf("\nZLE decompression was selected. If you "
|
||||||
"suspect the results are wrong,\ntry avoiding ZLE "
|
"suspect the results are wrong,\ntry avoiding ZLE "
|
||||||
|
|
Loading…
Reference in New Issue