From nobody Wed Jan 12 07:18:08 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 1E8BE19539FC; Wed, 12 Jan 2022 07:18:09 +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 4JYf6S5xLSz3sc6; Wed, 12 Jan 2022 07:18:08 +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 AB9DB97D; Wed, 12 Jan 2022 07:18:08 +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 20C7I8s4070237; Wed, 12 Jan 2022 07:18:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20C7I82x070236; Wed, 12 Jan 2022 07:18:08 GMT (envelope-from git) Date: Wed, 12 Jan 2022 07:18:08 GMT Message-Id: <202201120718.20C7I82x070236@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andriy Gapon Subject: git: dfb1c97ab973 - main - mmc_da: remove write-only local variables 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: avg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dfb1c97ab973d6c248b4886d7cc28be72c7b33f2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641971888; 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=wNjFSzB8JjrhuufsQpBulRXtO5V+W3JG2IVy0613A04=; b=Kfmhy1iIFyYMdD6knvIwfcd5DEY7i6Nowmr6KwNa/O9mmllnoq4mjkCA96iMW9T1aJqFzQ jnRQSqMeV+sckMCQwFSiDFmitvwxBxRmy9K7K5GOqRguF2mFVcV2dC4mu0geGESMeaunXH 3x/EzhiYCSIxdyJnwxO8O34MuDz23qa0tM/1spC6wa4wpl3PQkyfmfQ9M1BpB9b6IxBcXl dwwvqiC2qcmsI4PNjhGaCPNdkm0E8/6+8tesXD6HRzAoxiVE9YiVIvPi/35KiCrOrPjbtf /H8xLfmHeG4ZmvZ6byMObrhb+RPGHJXp0Jo0LR/W8if6dz/Vifaqt3EA+6/qpg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641971888; a=rsa-sha256; cv=none; b=JFIeDxqrxDv05AeyGja2GzLsZCm859khlvaN57zWZ4WPxWNFckXfRGPkF3M7ICap5q/I49 UwQQbpJmZH6bwXppy+kLFXjuTKCfMnjq0UL9BSeUp8M56mVmC2DzMflHhvgxX5uriKW3ET LRY+tGxjSmOV4GIGvNQyfzTg1GPs2yMkqnzwwBWp3rF+tXJoIqQ76wbRcweVmPIZA/BRup dvllox8cylfNsgRfbohEHUhJ5Ug4q2OOviUDAV0gguwplFsky0KerzSek4djWYfTT26GSG JqiKbfP/zAUu+w02XuVMtdD8/LF0SN8LdTjDPO7Iy+fI4EyyNdBeSc4sVUj7pQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=dfb1c97ab973d6c248b4886d7cc28be72c7b33f2 commit dfb1c97ab973d6c248b4886d7cc28be72c7b33f2 Author: Andriy Gapon AuthorDate: 2022-01-12 07:17:35 +0000 Commit: Andriy Gapon CommitDate: 2022-01-12 07:17:35 +0000 mmc_da: remove write-only local variables MFC after: 1 week --- sys/cam/mmc/mmc_da.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/cam/mmc/mmc_da.c b/sys/cam/mmc/mmc_da.c index bc2f6f642132..f669bfb34501 100644 --- a/sys/cam/mmc/mmc_da.c +++ b/sys/cam/mmc/mmc_da.c @@ -651,7 +651,6 @@ sddaasync(void *callback_arg, u_int32_t code, { struct ccb_getdev cgd; struct cam_periph *periph; - struct sdda_softc *softc; periph = (struct cam_periph *)callback_arg; CAM_DEBUG(path, CAM_DEBUG_TRACE, ("sddaasync(code=%d)\n", code)); @@ -694,7 +693,6 @@ sddaasync(void *callback_arg, u_int32_t code, case AC_GETDEV_CHANGED: { CAM_DEBUG(path, CAM_DEBUG_TRACE, ("=> AC_GETDEV_CHANGED\n")); - softc = (struct sdda_softc *)periph->softc; memset(&cgd, 0, sizeof(cgd)); xpt_setup_ccb(&cgd.ccb_h, periph->path, CAM_PRIORITY_NORMAL); cgd.ccb_h.func_code = XPT_GDEV_TYPE; @@ -755,7 +753,6 @@ sddaregister(struct cam_periph *periph, void *arg) { struct sdda_softc *softc; struct ccb_getdev *cgd; - union ccb *request_ccb; /* CCB representing the probe request */ CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("sddaregister\n")); cgd = (struct ccb_getdev *)arg; @@ -784,7 +781,6 @@ sddaregister(struct cam_periph *periph, void *arg) periph->softc = softc; softc->periph = periph; - request_ccb = (union ccb*) arg; xpt_schedule(periph, CAM_PRIORITY_XPT); TASK_INIT(&softc->start_init_task, 0, sdda_start_init_task, periph); taskqueue_enqueue(taskqueue_thread, &softc->start_init_task);