From 3df3c40de4704cc3fc23e7154bab923f6e5cfb21 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Mon, 23 Nov 2020 12:54:19 +0000 Subject: [PATCH] smartpqi: don't bzero the new ccb; xpt_alloc_ccb_nowait() already does that. Reviewed by: imp MFC after: 2 weeks Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D26838 --- sys/dev/smartpqi/smartpqi_cam.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/smartpqi/smartpqi_cam.c b/sys/dev/smartpqi/smartpqi_cam.c index ed8021ce3f51..c81b5a049da6 100644 --- a/sys/dev/smartpqi/smartpqi_cam.c +++ b/sys/dev/smartpqi/smartpqi_cam.c @@ -623,7 +623,6 @@ static void smartpqi_lun_rescan(struct pqisrc_softstate *softs, int target, return; } - bzero(ccb, sizeof(union ccb)); xpt_setup_ccb(&ccb->ccb_h, path, 5); ccb->ccb_h.func_code = XPT_SCAN_LUN; ccb->ccb_h.cbfcnp = smartpqi_lunrescan_cb;