Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753425AbbFXTCu (ORCPT ); Wed, 24 Jun 2015 15:02:50 -0400 Received: from mail-yk0-f177.google.com ([209.85.160.177]:33240 "EHLO mail-yk0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752695AbbFXTCo convert rfc822-to-8bit (ORCPT ); Wed, 24 Jun 2015 15:02:44 -0400 MIME-Version: 1.0 In-Reply-To: <5583C420.4040604@amd.com> References: <1434686723-12936-1-git-send-email-maninder1.s@samsung.com> <5583C420.4040604@amd.com> Date: Wed, 24 Jun 2015 15:02:43 -0400 Message-ID: Subject: Re: [PATCH 1/1] drm/radeon: use kzalloc for allocating one thing From: Alex Deucher To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Maninder Singh , "Deucher, Alexander" , Dave Airlie , Maling list - DRI developers , LKML , pankaj.m@samsung.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1760 Lines: 62 On Fri, Jun 19, 2015 at 3:26 AM, Christian König wrote: > On 19.06.2015 06:05, Maninder Singh wrote: >> >> Use kzalloc for allocating one thing rather than >> kcalloc(1... >> >> The semantic patch that makes this change is as follows: >> >> // >> @@ >> @@ >> >> - kcalloc(1, >> + kzalloc( >> ...) >> // >> >> Signed-off-by: Maninder Singh >> Reviewed-by: Vaneet Narang > > > Reviewed-by: Christian König > > Alex should pick that up in his 4.2 branch. Applied. thanks! Alex > > Regards, > Christian. > >> --- >> drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c >> b/drivers/gpu/drm/radeon/radeon_ttm.c >> index edafd3c..06ac59f 100644 >> --- a/drivers/gpu/drm/radeon/radeon_ttm.c >> +++ b/drivers/gpu/drm/radeon/radeon_ttm.c >> @@ -719,7 +719,7 @@ static int radeon_ttm_tt_populate(struct ttm_tt *ttm) >> return 0; >> if (gtt && gtt->userptr) { >> - ttm->sg = kcalloc(1, sizeof(struct sg_table), GFP_KERNEL); >> + ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL); >> if (!ttm->sg) >> return -ENOMEM; >> > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel -- 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/