git: dfb1c97ab973 - main - mmc_da: remove write-only local variables

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Wed, 12 Jan 2022 07:18:08 UTC
The branch main has been updated by avg:

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

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