From nobody Fri Nov 11 18:36:50 2022 X-Original-To: dev-commits-src-branches@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 4N86ql3wbpz4dbc8; Fri, 11 Nov 2022 18:36:51 +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 4N86ql1LxHz3w0F; Fri, 11 Nov 2022 18:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191811; 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=l9pkXnSUYFhQOAvfzHNd/49E6Bi2BvxoYu6DrreAn7M=; b=eSziD1+eZC8ottnX92h6d6CGlerhdRxovQ2lc0AxWNh3BqsOhjhbs09Ayh1XB6Y62NER8y cyIhrV8xy/Y9hjWWZ/+vp8Q/t+7vaFTWdcSjYyP/6qvt6qxpOzdkXVA/pbaJFhZ9tIVu6D SY/Tvw17QXtICQ/dff3tTcS5NPk6kxa60NVE6cUoe667f3EilQ8hENYJJx0cQA3b5PRLPl a3+2gyuLG/wqHuSONqe0Xh0+G35SlUMIdftr+JjXPSNWGM/mgOxEffz4Ep5BJuLMGnY4ak fTj8QTlTJHGnx8+1ysAzcwT0Hwi3O6KSZ9ogGMIcflersDX/lxP8+tVQKo5Ggg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191811; 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=l9pkXnSUYFhQOAvfzHNd/49E6Bi2BvxoYu6DrreAn7M=; b=kC0Tngev0bXiv87VSGZpnQRreucNY+RbD606OMAruq1+kJTEmtK+M10ew2BAGRl12Jyzmj ar3E9poBjb3ovARNJBYNkRvqkXDB876kBFWVAx0mJqKypEj3va+hO8jrMnDgCFxxZ56CcL H58DA3L4oyD/LgM6DMghslv0MqEMHEkIbGwdW/fIe9YMNeAgM/LLX0wKIK6ax7KPHrsciJ kmPDTJGoJnTDlW0yics5jBo2KxLXD3K/FFLW6LiqTgT2KCMfBEnmCvw1gA84jLiI/Xp+Cx 8OvXxJ1PBSa71TVERYpZogr5pPtXNM1ZRkb1iU4Hn+C0EQm4uILGl9EkCocsgA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668191811; a=rsa-sha256; cv=none; b=vt7CGiR3NQfZgtx2Tz7lPeI6p+7JhxwhNpeRGo/ljCcFhNzxmzaqWoRmPKoU0Ij4ET65Hr 8Cr4Q3bCdV9Uidg0+iNFfhQpOryuJ8P2X9iyZC688wzPxMWOwI6SVDfPBx1sqMc81TV2d+ WFmoEZ3p5tnKGemUKdhd12UsbD6UEZFyjazDA2U40bRj6sEOfx1+1Ss6uDeP/y97DAAJDY hMK2GsUqKwRozmGV1NR4C6kJpm4bj8GBc0vqpOEn5O4gdwwO2ZVxoJzDw5hb3opYF/AZf4 aJTVROZRItsZwJkXbLzDiQdwGb9alKpBztGAptvuWZKfFYRZsCt9+X8bK1+ahw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N86ql0SQzztNp; Fri, 11 Nov 2022 18:36:51 +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 2ABIaoug004136; Fri, 11 Nov 2022 18:36:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABIaoQY004135; Fri, 11 Nov 2022 18:36:50 GMT (envelope-from git) Date: Fri, 11 Nov 2022 18:36:50 GMT Message-Id: <202211111836.2ABIaoQY004135@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: ec5c52b7a313 - stable/13 - nvmecontrol wdc: Remove unused but set variable. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ec5c52b7a313f9890405de9b2f5179691d60ee80 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ec5c52b7a313f9890405de9b2f5179691d60ee80 commit ec5c52b7a313f9890405de9b2f5179691d60ee80 Author: John Baldwin AuthorDate: 2022-10-03 23:10:42 +0000 Commit: John Baldwin CommitDate: 2022-11-11 18:18:53 +0000 nvmecontrol wdc: Remove unused but set variable. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36812 (cherry picked from commit d81082a7ad25f26309a1466b9ad565f507bed275) --- sbin/nvmecontrol/modules/wdc/wdc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sbin/nvmecontrol/modules/wdc/wdc.c b/sbin/nvmecontrol/modules/wdc/wdc.c index 050458a8812f..a60f72942186 100644 --- a/sbin/nvmecontrol/modules/wdc/wdc.c +++ b/sbin/nvmecontrol/modules/wdc/wdc.c @@ -783,7 +783,6 @@ static void print_hgst_info_log(const struct nvme_controller_data *cdata __unused, void *buf, uint32_t size __unused) { uint8_t *walker, *end, *subpage; - int pages; uint16_t len; uint8_t subtype, res; @@ -791,8 +790,7 @@ print_hgst_info_log(const struct nvme_controller_data *cdata __unused, void *buf printf("===================\n"); walker = buf; - pages = *walker++; - walker++; + walker += 2; /* Page count */ len = le16dec(walker); walker += 2; end = walker + len; /* Length is exclusive of this header */