From nobody Tue Apr 05 04:32:55 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 651561A92A5A; Tue, 5 Apr 2022 04:32:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KXZWW5bjgz4gYZ; Tue, 5 Apr 2022 04:32:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=upDbSAIJ9EcM5L7x7jtobvp0xI7AG7Q9YpmKN+yGUkc=; b=LKqptw9RXXELc+Zd5MxRBd6pvJpPxc0LiLtMHGK2XjPCX8LplTFdkou7KghhKBTXsILEdS jISSRTmyOUGYiSl6ieFVtYYlyJ8zyVwsDNGUvW+hbXSBmtV1Rr6jlLEmjETRfdLX95yVEe pFQjGkblA0+eO8SDhTgf9J0aRWF25hfdPY2PDgCmcGMstkQrkOmWSwB1X1237jR9iunycN BIcYO0MJt04pi6NpL1msSmX6NYY7LFO+8d8aJiBdt4pmnKULV779bgtrOBZ+V55XcsNT+T AtqGdEriWs1WbcEhloqUk+u061Bh6h228RmAwfgmVf4Uoh3JN0bNLvBqHVdj7Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 96EBF1F85F; Tue, 5 Apr 2022 04:32:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2354Wtio009639; Tue, 5 Apr 2022 04:32:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354WtNR009638; Tue, 5 Apr 2022 04:32:55 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:55 GMT Message-Id: <202204050432.2354WtNR009638@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 7a1bef40f1e9 - main - ustorage_fs_verify: eliminate write only variables file_offset and file_offset List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7a1bef40f1e9bb4d3d56331e743dec79c49a8fc4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=upDbSAIJ9EcM5L7x7jtobvp0xI7AG7Q9YpmKN+yGUkc=; b=og9u49y9D1NDqNviyfBmRLNevn9m7nErNOuchaemmo1hlPHA4hLKzP6Zcbu9lph6A7Jcai ed0xWDZ9nbDI35/EiATrk8CxIN5dXIUeI36byysybSSKtMnQefJzOqjSem9RCC2rjlfk01 qPAqMzgsAs7se8Ez99OjYl3Wf/B6m2Tpi90cmsrdtSQADFplEiuouB9/sMjEbPX3uRDcbD qwLUl5R5KK8waYNC3MGmM0xxq+SJ1azWwA39N8v9KlMJjJ7nRGzRoG6MIubMbh4q4xdvgh g84RPpzkx2BpzQ0PT19J4Gr01zZb5/MYir+xaY8XhnXibpVtz7+tzh1HjG5PkA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133176; a=rsa-sha256; cv=none; b=rMfPkqj7t2tzTbAdHRpyPelhey/ds9MzeGz/MfpTi0zPfPg4CRW7HU1Vq09cqL6mw/actd ZrVj1WRxhOSHp1xR5sYWLl42xA9YfdWGUKJFhGmh0zUYxgU+durPiFV1soztVZY2oXQ1kl szPjb2dJNUse2+ZTaQDuPJUUjOH1Qqc5ATnO+S/1CxUAqipLVckSNN9JfVhz4sTjGb3+Xb FcjLI4XXz9jCiyBB1WXSsQsrsmm0X9lvTwSnmPA27oezO0DCDNEaGrBUbOt+X2m+8i+OM4 IIhtA4Yq61YGI/4v5QbgNQfhSLySdauFYQDHyaR4OL0BLniQ/AoQLY4XvMuxkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7a1bef40f1e9bb4d3d56331e743dec79c49a8fc4 commit 7a1bef40f1e9bb4d3d56331e743dec79c49a8fc4 Author: Warner Losh AuthorDate: 2022-04-05 02:31:54 +0000 Commit: Warner Losh 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;