git: 08956b8362af - stable/13 - mmc_da: remove write-only local variables
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Jan 2022 07:01:34 UTC
The branch stable/13 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=08956b8362afe62584a969a2fd30fe260d1f0933 commit 08956b8362afe62584a969a2fd30fe260d1f0933 Author: Andriy Gapon <avg@FreeBSD.org> AuthorDate: 2022-01-12 07:17:35 +0000 Commit: Andriy Gapon <avg@FreeBSD.org> 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);