Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751721AbbFREhJ (ORCPT ); Thu, 18 Jun 2015 00:37:09 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:37611 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751309AbbFREhE (ORCPT ); Thu, 18 Jun 2015 00:37:04 -0400 X-AuditID: cbfee68e-f79c56d000006efb-bf-55824aeec5fb From: Maninder Singh To: JBottomley@odin.com, hare@suse.de, hch@lst.de, michaelc@cs.wisc.edu, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: pankaj.m@samsung.com, Maninder Singh Subject: [PATCH 1/1] scsi: use kzalloc for allocating one thing Date: Thu, 18 Jun 2015 10:06:34 +0530 Message-id: <1434602194-14484-1-git-send-email-maninder1.s@samsung.com> X-Mailer: git-send-email 2.1.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsWyRsSkSve9V1Oowd/N7BZ7Fk1isli5+iiT xf/1t1ksLu+aw2bRfX0Hm8Xh+W0sFsuP/2OyWPGmm9Hi3putTA6cHld/rWL22H2zgc3j8I8f zB4fn95i8ejbsorRY/Ppao/Pm+QC2KO4bFJSczLLUov07RK4MiYutSjYzFax6Nt/1gbGbaxd jJwcEgImEu3Nk5khbDGJC/fWs3UxcnEICSxllPiz7R47TNG83W+YIBLTGSUmvJnBCuFMYpKY vGwbC0gVm4CexKpde8BsEYGFjBL9jzW7GDk4mAWcJKZ/1QMJCwvYS/R+v8MIYrMIqEpsPPuF FaSEV8Bd4vEDJYhdchLnj/+EOmg6u0TrGzOIcgGJb5MPsYCUSwjISmw6AFUiKXFwxQ2WCYyC CxgZVjGKphYkFxQnpRcZ6RUn5haX5qXrJefnbmIEhvXpf8/6djDePGB9iFGAg1GJh/elfVOo EGtiWXFl7iFGU6ANE5mlRJPzgdGTVxJvaGxmZGFqYmpsZG5ppiTOm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xttmq7Ur85TTt9wOjVi1jNqUosxRmJhlrMRcWJAMt3PiKxAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1040 Lines: 29 Use kzalloc rather than kcalloc(1,...) for allocating one thing Signed-off-by: Maninder Singh Reviewed-by: Vaneet Narang --- drivers/scsi/mvsas/mv_init.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index d40d734..65e47eb 100644 --- a/drivers/scsi/mvsas/mv_init.c +++ b/drivers/scsi/mvsas/mv_init.c @@ -558,7 +558,7 @@ static int mvs_pci_init(struct pci_dev *pdev, const struct pci_device_id *ent) chip = &mvs_chips[ent->driver_data]; SHOST_TO_SAS_HA(shost) = - kcalloc(1, sizeof(struct sas_ha_struct), GFP_KERNEL); + kzalloc(sizeof(struct sas_ha_struct), GFP_KERNEL); if (!SHOST_TO_SAS_HA(shost)) { kfree(shost); rc = -ENOMEM; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/