From nobody Wed Jan 19 07:01:34 2022 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 0C87A197297B; Wed, 19 Jan 2022 07:01:35 +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 4JdxQ64gsmz3jxC; Wed, 19 Jan 2022 07:01:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642575694; 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=7eojqRslM/hn3D8dGT80smbj/NNpxnaByFyoU3Hz4yw=; b=CklNrZygHQWoexvO2T+1yI1E3i4cbsq5+tj3ScouFXdZKtvB5l8Q8EOgnZM0QCkdX0OiRb nJAwn4cojuXOpq5S9HVpHX9UsWvoua6Vj59SCcLgXfCOM8uq3KsP7Rkhegp8zTpDbCoJSm ki7o//pifzc30cN74KfVB2zupDdFqTaIuIMoD6aEvqtOeoJ5+J5QijKhv9tg8sMJdfpbTo +b9r//xNd5p1dwGuCN3YJTmJFXc3p6o/HUjCJlDiJzbdWMHIbmgo3EMNN1BOi1swaiK80f bOElldyFMd7Y4l64hvLMArwI568KhFDiiV6cIOO8yuN9Y8K+qBHlVcaaiduHBw== 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 8126C108CB; Wed, 19 Jan 2022 07:01:34 +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 20J71YO7019671; Wed, 19 Jan 2022 07:01:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20J71YQm019670; Wed, 19 Jan 2022 07:01:34 GMT (envelope-from git) Date: Wed, 19 Jan 2022 07:01:34 GMT Message-Id: <202201190701.20J71YQm019670@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andriy Gapon Subject: git: 08956b8362af - stable/13 - mmc_da: remove write-only local variables 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: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 08956b8362afe62584a969a2fd30fe260d1f0933 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642575694; 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=7eojqRslM/hn3D8dGT80smbj/NNpxnaByFyoU3Hz4yw=; b=NCQHI7OJHS0PsVqs349Enk+5xcHWWiY6TkQ20nNeyEknJ9EVq977Y/sQ7wfyA7GhRvE5Lt z7XgnHdGE2ltIBxlDbRYm9v9f9dFtEE06eBTkkF2lf/Ne5ewrC7lHQXKW9hH9gY/MUg+sP WSG8pP3Oy0KY5IS/At0rgP5r28gvw53Lqr64hTS+NoMOXt7TmTp2gaOwtAEM+B53RL7uys 6huXgkilHLp39FLggUUBjNxKpB4NHyxHZwDaY6hzuzRQvZA4YYpdSGnhHZPnnXmhkVQeoP zyxouGinpxxqvTFTfSQbhS/FT69gosv+sD/fX0QEYzjpmgN8zzpOsxYS7hbEKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642575694; a=rsa-sha256; cv=none; b=Oi4TKhyhzIicYD39UkolYpK/m2RQol/694PUY4omwUQdmqyxFsi6bTnySsA4wXRDsSz1V+ p1t8ONKQWvuKnWACdKKTMaFWzWDh996Rmcwc+RJ3rsMOsPqUYgUHVc48XWMf15+UXiC3wW MOzPvohSUziPjngoQZfJeXVBMefmaolFgu2t8kynVsZH1rSZZkDvWes5zumPTzPSZDZO4I M0h0o1xS+XaLjntIFJB0xPatZyl86Raf6JRkeUgP7enR7VSXACLDShycNswei8aLRt43sN yvzMlGwaJqQ8IVOoOWYRhwzkn2lrAO6PNSnImK1eeM4pznNfFqhCPpiDfqKe9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=08956b8362afe62584a969a2fd30fe260d1f0933 commit 08956b8362afe62584a969a2fd30fe260d1f0933 Author: Andriy Gapon AuthorDate: 2022-01-12 07:17:35 +0000 Commit: Andriy Gapon CommitDate: 2022-01-19 06:57:31 +0000 mmc_da: remove write-only local variables (cherry picked from commit dfb1c97ab973d6c248b4886d7cc28be72c7b33f2) --- 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 22a467af2f5f..0aeea57eee26 100644 --- a/sys/cam/mmc/mmc_da.c +++ b/sys/cam/mmc/mmc_da.c @@ -650,7 +650,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)); @@ -693,7 +692,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; xpt_setup_ccb(&cgd.ccb_h, periph->path, CAM_PRIORITY_NORMAL); cgd.ccb_h.func_code = XPT_GDEV_TYPE; xpt_action((union ccb *)&cgd); @@ -753,7 +751,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; @@ -782,7 +779,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);