The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7a1bef40f1e9bb4d3d56331e743dec79c49a8fc4

commit 7a1bef40f1e9bb4d3d56331e743dec79c49a8fc4
Author:     Warner Losh <i...@freebsd.org>
AuthorDate: 2022-04-05 02:31:54 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2022-04-05 04:30:40 +0000

    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 8c9b35591018..adcb632bc93c 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;
 

Reply via email to