From: Bart Van Assche Subject: [PATCH v2 12/12] xen/scsifront: Remove code that zeroes driver-private command data Date: Thu, 1 Jun 2017 16:27:11 -0700 Message-ID: <20170601232711.29062-13-bart.vanassche@sandisk.com> References: <20170601232711.29062-1-bart.vanassche@sandisk.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from esa3.hgst.iphmx.com ([216.71.153.141]:17702 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbdFAX1Y (ORCPT ); Thu, 1 Jun 2017 19:27:24 -0400 In-Reply-To: <20170601232711.29062-1-bart.vanassche@sandisk.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Martin K . Petersen" , James Bottomley Cc: linux-scsi@vger.kernel.org, Christoph Hellwig , Bart Van Assche , xen-devel@lists.xenproject.org, Johannes Thumshirn Since the SCSI core zeroes driver-private command data, remove that code from the xen-scsifront driver. Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Reviewed-by: Juergen Gross Cc: xen-devel@lists.xenproject.org Cc: Johannes Thumshirn --- drivers/scsi/xen-scsifront.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/xen-scsifront.c b/drivers/scsi/xen-scsifront.c index a6a8b60d4902..36f59a1be7e9 100644 --- a/drivers/scsi/xen-scsifront.c +++ b/drivers/scsi/xen-scsifront.c @@ -534,7 +534,6 @@ static int scsifront_queuecommand(struct Scsi_Host *shost, int err; sc->result = 0; - memset(shadow, 0, sizeof(*shadow)); shadow->sc = sc; shadow->act = VSCSIIF_ACT_SCSI_CDB; -- 2.12.2