From nobody Thu Nov 25 03:23:29 2021 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 F24E718AD826; Thu, 25 Nov 2021 03:23:29 +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 4J039s4KK8z4RYN; Thu, 25 Nov 2021 03:23:29 +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 7563916076; Thu, 25 Nov 2021 03:23:29 +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 1AP3NTdm004011; Thu, 25 Nov 2021 03:23:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AP3NTSh004010; Thu, 25 Nov 2021 03:23:29 GMT (envelope-from git) Date: Thu, 25 Nov 2021 03:23:29 GMT Message-Id: <202111250323.1AP3NTSh004010@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: bcce9c5bedfa - main - Fix "set but not used" warnings in the mps driver. 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: scottl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bcce9c5bedfafd6f0f76c022c8a1e45fa8e9fd0a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637810609; 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=mb17wqYTD/fMmLv5lXHmLgY3i4MkCnV3aHwGdOCjfTQ=; b=VgzC6Z2PYPt1FDIz+79OoDaKCumipCNeZlOo6xuuP+/o9K1ddFX9QG1k7tNGTtOI0CfJbQ 4m1sQhaVMIzhkBrdR/40lz4alMx/UAhkSY7dp9g3hJcbjCgt/E5iNNiBSsgSbR6GZ7osN+ RzAOmgOhycwHUKekrHWXd8WD2sVsQh3ow6cd/3J9bzEg9bcG6XzD7s5EaGVA9noq3Vr3qb EZy0teP1JUliIiW4/QXw1SFtZQAkCgQ1ZyfaqwnTfgn8oPqMNrOGLUQtahdt9ZLwE8Ehcj +P8tWB4EmM/5KQQeATHbmbUw7YQgX8QxGAHlLz4VbsLF56whl0tzmoLZDTb8Kg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637810609; a=rsa-sha256; cv=none; b=kmJjjtlx+lnCXcO3Per1NrP6Cglzy1jvXfdRP/qf+s6c9I1bul0lTTWk1A3ArIZpoYF4Jt eSxtL0qxRtf+///2LTzr7rk0HI3SyiDV1E6IQ9Q0XoJqsYsAiVEj9Wys9einRBPmaIkf55 /IPV9KHm/wY4jMgnVEfbOxxQU0BoBwCRUSgf2BdQ8gPjL+Vpia1J6RakDE7g2743+XQ93u Jrk4/BA6QMSwDwXzGWcAv9rDau/xitMQ417pKJCWBJo1o1AJtqqkV1gddCjwxtAKQtPgAa wP54cJIA4CxIFBu5fXXEWvisrHwlLoOrmSeP8Xe9butygAqF9TgT6V0+JgFnIw== 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=bcce9c5bedfafd6f0f76c022c8a1e45fa8e9fd0a commit bcce9c5bedfafd6f0f76c022c8a1e45fa8e9fd0a Author: Scott Long AuthorDate: 2021-11-25 03:23:02 +0000 Commit: Scott Long CommitDate: 2021-11-25 03:23:02 +0000 Fix "set but not used" warnings in the mps driver. --- sys/dev/mps/mps_sas.c | 2 -- sys/dev/mps/mps_sas_lsi.c | 3 --- sys/dev/mps/mps_table.c | 2 -- 3 files changed, 7 deletions(-) diff --git a/sys/dev/mps/mps_sas.c b/sys/dev/mps/mps_sas.c index 6e610c725edb..c54c2a82faff 100644 --- a/sys/dev/mps/mps_sas.c +++ b/sys/dev/mps/mps_sas.c @@ -1180,14 +1180,12 @@ static void mpssas_logical_unit_reset_complete(struct mps_softc *sc, struct mps_command *tm) { MPI2_SCSI_TASK_MANAGE_REPLY *reply; - MPI2_SCSI_TASK_MANAGE_REQUEST *req; unsigned int cm_count = 0; struct mps_command *cm; struct mpssas_target *targ; callout_stop(&tm->cm_callout); - req = (MPI2_SCSI_TASK_MANAGE_REQUEST *)tm->cm_req; reply = (MPI2_SCSI_TASK_MANAGE_REPLY *)tm->cm_reply; targ = tm->cm_targ; diff --git a/sys/dev/mps/mps_sas_lsi.c b/sys/dev/mps/mps_sas_lsi.c index 8cfb1700c705..dc22af1e47d0 100644 --- a/sys/dev/mps/mps_sas_lsi.c +++ b/sys/dev/mps/mps_sas_lsi.c @@ -268,9 +268,6 @@ mpssas_fw_work(struct mps_softc *sc, struct mps_fw_event_work *fw_event) } case MPI2_EVENT_SAS_ENCL_DEVICE_STATUS_CHANGE: { - Mpi2EventDataSasEnclDevStatusChange_t *data; - data = (Mpi2EventDataSasEnclDevStatusChange_t *) - fw_event->event_data; mps_mapping_enclosure_dev_status_change_event(sc, fw_event->event_data); break; diff --git a/sys/dev/mps/mps_table.c b/sys/dev/mps/mps_table.c index e3254570b496..aec97327e6b6 100644 --- a/sys/dev/mps/mps_table.c +++ b/sys/dev/mps/mps_table.c @@ -519,12 +519,10 @@ mps_print_sgl(struct mps_softc *sc, struct mps_command *cm, int offset) { MPI2_SGE_SIMPLE64 *sge; MPI2_SGE_CHAIN32 *sgc; - MPI2_REQUEST_HEADER *req; struct mps_chain *chain = NULL; char *frame; u_int i = 0, flags; - req = (MPI2_REQUEST_HEADER *)cm->cm_req; frame = (char *)cm->cm_req; sge = (MPI2_SGE_SIMPLE64 *)&frame[offset * 4]; printf("SGL for command %p\n", cm);