ustorage_fs_verify: eliminate write only variables file_offset and file_offset

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-04-04 20:31:54 -06:00
parent f7097359c8
commit 7a1bef40f1

View file

@ -936,8 +936,6 @@ ustorage_fs_verify(struct ustorage_fs_softc *sc)
struct ustorage_fs_lun *currlun = sc->sc_transfer.currlun;
uint32_t lba;
uint32_t vlen;
uint64_t file_offset;
uint64_t amount_left;
/*
* Get the starting Logical Block Address
@ -958,12 +956,6 @@ ustorage_fs_verify(struct ustorage_fs_softc *sc)
}
/* No default reply */
/* Prepare to carry out the file verify */
amount_left = vlen;
amount_left <<= 9;
file_offset = lba;
file_offset <<= 9;
/* Range check */
vlen += lba;