git: 9fe892e8fab2 - stable/12 - mmc_da: remove write-only local variables

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Wed, 19 Jan 2022 07:04:45 UTC
The branch stable/12 has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=9fe892e8fab25f6c34c99589c4b71241ec3902aa

commit 9fe892e8fab25f6c34c99589c4b71241ec3902aa
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2022-01-12 07:17:35 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
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);