Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752088AbbKKEXX (ORCPT ); Tue, 10 Nov 2015 23:23:23 -0500 Received: from mail-pa0-f67.google.com ([209.85.220.67]:33269 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751285AbbKKEXW (ORCPT ); Tue, 10 Nov 2015 23:23:22 -0500 From: yalin wang To: ulf.hansson@linaro.org, adrian.hunter@intel.com, ben@decadent.org.uk, jh80.chung@samsung.com, asaf.vertz@tandemg.com, tklauser@distanz.ch, jonathanh@nvidia.com, JBottomley@Odin.com, grundler@chromium.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: yalin wang Subject: [PATCH] mmc: change to use kmalloc Date: Wed, 11 Nov 2015 12:23:11 +0800 Message-Id: <1447215791-19429-1-git-send-email-yalin.wang2010@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 28 Use kmalloc instead of kzalloc, zero the memory is not needed. Signed-off-by: yalin wang --- drivers/mmc/card/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 23b6c8e..975cd3e 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -365,7 +365,7 @@ static struct mmc_blk_ioc_data *mmc_blk_ioctl_copy_from_user( if (!idata->buf_bytes) return idata; - idata->buf = kzalloc(idata->buf_bytes, GFP_KERNEL); + idata->buf = kmalloc(idata->buf_bytes, GFP_KERNEL); if (!idata->buf) { err = -ENOMEM; goto idata_err; -- 1.9.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/