From 7a1bef40f1e9bb4d3d56331e743dec79c49a8fc4 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 4 Apr 2022 20:31:54 -0600 Subject: [PATCH] ustorage_fs_verify: eliminate write only variables file_offset and file_offset Sponsored by: Netflix --- sys/dev/usb/storage/ustorage_fs.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/dev/usb/storage/ustorage_fs.c b/sys/dev/usb/storage/ustorage_fs.c index 8c9b3559101..adcb632bc93 100644 --- a/sys/dev/usb/storage/ustorage_fs.c +++ b/sys/dev/usb/storage/ustorage_fs.c @@ -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;