From nobody Wed Jan 19 07:04:45 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 BFAB219770D6; Wed, 19 Jan 2022 07:04:45 +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 4JdxTn54k4z3mPF; Wed, 19 Jan 2022 07:04:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642575885; 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=0MiiC/qGFuWLqfZ/i7BHGSogwFOVQ+hFwy20vWnXJ3E=; b=FyPr7Nev++UV+eH9DllW9f/JvyK96L6m8a048nrT4FMXnRAD6F8bKBCVXLU6MIliwPTUZx +vyU1w9bKy0eHCze9VX4KlKaFo5UIAWGnLvHKw7+pAvFfevNhS0w55QheXb7NnXZXwbNOA 2u1AVWajS8ldYsmyIJpHnMsxi06/KVTHQYRaZ9994wcIFRZtDieqbAV5ncod+3aaM//RFV vg9MupStQRs4LnyDq0Sxdmr0mc+c4UeoDksGjVOtKcAXEpt2o01y7l1sDXUxqXs65xp6FL 4Ai+KvsE0vCtpQOd2bEESEwGTAlFxgs9qFvo4S608Q3bhxec/bGBYDFkdYnebg== 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 89EFB10955; Wed, 19 Jan 2022 07:04:45 +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 20J74jkE021693; Wed, 19 Jan 2022 07:04:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20J74jBD021692; Wed, 19 Jan 2022 07:04:45 GMT (envelope-from git) Date: Wed, 19 Jan 2022 07:04:45 GMT Message-Id: <202201190704.20J74jBD021692@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: 9fe892e8fab2 - stable/12 - mmc_da: remove write-only local variables 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: avg X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 9fe892e8fab25f6c34c99589c4b71241ec3902aa Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642575885; 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=0MiiC/qGFuWLqfZ/i7BHGSogwFOVQ+hFwy20vWnXJ3E=; b=IunryvZ6Jga/eH05rr8GFcpOHDKKbcJhCUFQrvRTyon8kL2HS+C0LgUjg5yXortrmKDn0B OFA8x64h7ZqNWuso0xGxnq5FWXQAUbAU3gFQDw5sq0gx7LENG51/IZOmyCnzuKxmYnlb+5 TglTwgjDnjBJ0BkAzavhUMz2i68TxdOCzOgZ9MDdZhVNdHgNuFrRzBsHdbl1neJ5I+v25g 3xI2h0UA+7Su182ytAy99zpRkDiLNBSW9ZbIc2uQyaRJ7+Eo0OBdEEeaovfrmT1+o9Cpxc UKu57EWf6Xpt5xDuccgJ38zly0XDi3H3jnfywdRKvFopzgfe9lU1k4O2rwIgPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642575885; a=rsa-sha256; cv=none; b=Ki9E9gTgBe2IoLCx0WZkO2+9J68mEP+msbkYW3X8vqZraVPv/cfZbIWqq+PZENlQPtlXZK PaiQjjowXvCGILvcrS5m4QmQ0PInZBYeeMKb3YV24D/NlySw/LQITtn8s+Z/C61cSl4u1t DFuZIWpeO7Fq8YViMFRPdKILc2xE6F3YU0bf7xmlrjlu6jp4BYthmDgsWlLryKeY7Ehov/ dMPiVLmu2GR7manfkUNX23bgYzKUq+W8LjmQJMnJbUxXWNY86Z0xKbLd2fnmEQ//Ka8W2h 94cGFvuSv5KNvA14VL62Dt6+MJSJRAYxtFh4z15zQaPwOGLgvt+MZIfPbkacRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=9fe892e8fab25f6c34c99589c4b71241ec3902aa commit 9fe892e8fab25f6c34c99589c4b71241ec3902aa Author: Andriy Gapon AuthorDate: 2022-01-12 07:17:35 +0000 Commit: Andriy Gapon CommitDate: 2022-01-19 07:02:08 +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 96898e92cb81..5f888789e46a 100644 --- a/sys/cam/mmc/mmc_da.c +++ b/sys/cam/mmc/mmc_da.c @@ -622,7 +622,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)); @@ -665,7 +664,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); @@ -726,7 +724,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; @@ -750,7 +747,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);