git: 6bdaf5917f49 - stable/13 - ustorage_fs_verify: eliminate write only variables file_offset and file_offset
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:30:03 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=6bdaf5917f493c3dd4e73ff507fb7d0537163444
commit 6bdaf5917f493c3dd4e73ff507fb7d0537163444
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:34 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:56 +0000
ustorage_fs_verify: eliminate write only variables file_offset and file_offset
Sponsored by: Netflix
(cherry picked from commit 7a1bef40f1e9bb4d3d56331e743dec79c49a8fc4)
---
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;