From nobody Sat Dec 04 18:07:10 2021 X-Original-To: dev-commits-src-all@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 D1BBB18C6E40; Sat, 4 Dec 2021 18:07:10 +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 4J5yML2Mt7z4txw; Sat, 4 Dec 2021 18:07:10 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 31DE0B3D; Sat, 4 Dec 2021 18:07:10 +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 1B4I7AH1059085; Sat, 4 Dec 2021 18:07:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B4I7Afp059084; Sat, 4 Dec 2021 18:07:10 GMT (envelope-from git) Date: Sat, 4 Dec 2021 18:07:10 GMT Message-Id: <202112041807.1B4I7Afp059084@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Scott Long Subject: git: f25d575762c7 - main - Fix "set but not used" for hptmv List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: scottl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f25d575762c7a4154901f9057e56743e554709cd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638641230; 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=AAWilQpyWZ31ZSOuJTJ01MgHz6dOUqogSV+ig6Cy9FU=; b=NbE67Xuu+CitTKx3bX6Wjv5G/G7ySIuJ0tFGkfQHDJy0WAz8Cy5fFIS6zkc68BBvi4/zqx ZJWOnIX1SLm3wjU5JM7e44sGd15IoW1YDLm8aSKNtyDLiCYY2wHTBU5G6hk6w88v2agfC2 RYD4ut+rQrkv5HoplNickJnEDlZG83KYJkVZMtYfkUlSYQ2mqtHnZZERt6K2qoBP7U0ufn hNBaQGrFJOKzxVkSuwlXZCsjJUADZB3eBAtOXLeayUOuDZg3pP6iyEKi01N5KAoKiAKL4+ 1jQVgq6ekZy2sXMv3JhmXQELcf2k8BDL6Fx9w64clo76vebLNbx7xEwaV18tcg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638641230; a=rsa-sha256; cv=none; b=Tl8vPz89BNItr8QuEpUbU/JJyZMDYLaa7Id08P/aa8lWHYMrZAPjZyE33TYtVBCnM3y3LO rdDwKgqtyh4Frm4oTZFB8UKfXD9fF5+FgqDHOGBPTd8MxxebpIErxmjF/RhmW6psJ8P7Pk tBlIIcSUmQ4zOvmpkY3EFZmjx73EDZaKr21JCI8UrjzNJ0hlLcipcB8o2S4pzcSw8Y5oUZ 49XerN31NnjE2xL/x5lJKbpa6Yz4Y0rVgGFQtSdOclaw6S70oi0/dCklaZ3oaWlZLmuL9K wXi4KEbTR4fogW/Jf7uQjZjffXUg/Au9ehbcaN0eek4fh5V67mwXwXQkR+ucWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=f25d575762c7a4154901f9057e56743e554709cd commit f25d575762c7a4154901f9057e56743e554709cd Author: Scott Long AuthorDate: 2021-12-04 18:06:33 +0000 Commit: Scott Long CommitDate: 2021-12-04 18:07:04 +0000 Fix "set but not used" for hptmv Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/hptmv/entry.c | 3 --- sys/dev/hptmv/hptproc.c | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/hptmv/entry.c b/sys/dev/hptmv/entry.c index 7fbcb3a16571..d1c6f8185f6c 100644 --- a/sys/dev/hptmv/entry.c +++ b/sys/dev/hptmv/entry.c @@ -2084,10 +2084,7 @@ hpt_detach(device_t dev) static void hpt_poll(struct cam_sim *sim) { - IAL_ADAPTER_T *pAdapter; - pAdapter = cam_sim_softc(sim); - hpt_intr_locked((void *)cam_sim_softc(sim)); } diff --git a/sys/dev/hptmv/hptproc.c b/sys/dev/hptmv/hptproc.c index 90d65250c752..dd4fe8d4fdb2 100644 --- a/sys/dev/hptmv/hptproc.c +++ b/sys/dev/hptmv/hptproc.c @@ -379,7 +379,6 @@ get_disk_name(char *name, PDevice pDev) static int hpt_copy_info(HPT_GET_INFO *pinfo, char *fmt, ...) { - int printfretval; va_list ap; if(fmt == NULL) { @@ -389,7 +388,7 @@ hpt_copy_info(HPT_GET_INFO *pinfo, char *fmt, ...) else { va_start(ap, fmt); - printfretval = vsnprintf(hptproc_buffer, sizeof(hptproc_buffer), fmt, ap); + vsnprintf(hptproc_buffer, sizeof(hptproc_buffer), fmt, ap); va_end(ap); return(SYSCTL_OUT(pinfo, hptproc_buffer, strlen(hptproc_buffer))); }