Author: trasz
Date: Mon Nov 23 12:54:19 2020
New Revision: 367949
URL: https://svnweb.freebsd.org/changeset/base/367949

Log:
  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

Modified:
  head/sys/dev/smartpqi/smartpqi_cam.c

Modified: head/sys/dev/smartpqi/smartpqi_cam.c
==============================================================================
--- head/sys/dev/smartpqi/smartpqi_cam.c        Mon Nov 23 12:50:38 2020        
(r367948)
+++ head/sys/dev/smartpqi/smartpqi_cam.c        Mon Nov 23 12:54:19 2020        
(r367949)
@@ -623,7 +623,6 @@ static void smartpqi_lun_rescan(struct pqisrc_softstat
                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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to