Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp347540pxu; Thu, 7 Jan 2021 06:38:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1AMcrjIgm2mW3kt2WE+cOPutLcRJEtMS2bPnKTGo6tZ9P5Ziy0F7iNQ/YNKEnCqD8FOi/ X-Received: by 2002:a05:6402:312b:: with SMTP id dd11mr1956011edb.308.1610030319128; Thu, 07 Jan 2021 06:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610030319; cv=none; d=google.com; s=arc-20160816; b=GieL7AHYuCzgRQce9eKhcQ+v4PLedv1+RbtX14Hx5/Oc0sU9RG5Ctld4IRvKqcSJ2j 4nH8bQh89kGHWjEt6LCwnrl+/tqclLefkG7v6nl5zebWnUwliO3AY0p4QIYgH8n6k7Ep YT3Sg37BMJYlZhF3G2sWLMzZDjd6VxBHUmt8oXgGgcKiTlAuCcNopPiQd06drcJhqLNa olnET1k7b6Cj0msF39tXpEREIQosoSswoIDOnwKP9uodM1Ny1M8/X92djj1L28LJIHSu rKt3ETya05suO6O5i8ElVKaxn2S9QZ7dGA9B403fmetRbqBkX4qSMV9UKq2SbFTaqCtd PG2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=thRnzdtLqLOmkkw4OT2nvpWNtjvTS5dWVLsx4lEyYPk=; b=wCONFUQDG5OZblOilc12kDwjAfVcLEsHrgnwr7bxQjSgasgQUjqnmqfdM1//uwchjT 0D9pA063Q28wM71vTn81LoJNBMB6rpa4yUaYfmzmn9xbL5OcQp1b2owkAQ5/yzxe+06H JuI27W4Bzh/fNLiYFo5JSzTR7aaiwgCV4t01d0zASg1Z61McXZca1gqzWqImC7FA7O5F qPBAsWq/vfjgI5rs+y3uZnRzvALT22C6J6f/3TROmECxRrKaWc4Vpm8V6EY6pzyDCFvE F6XZ+JelpI0IbdUoXNydnmMh0vPFkudJ6H7XGp4Gz1vsgKzLBa5QI646TCnE4aqyRFR7 lysA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ds6zYSWN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si2538334eds.529.2021.01.07.06.38.15; Thu, 07 Jan 2021 06:38:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ds6zYSWN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729338AbhAGOcb (ORCPT + 99 others); Thu, 7 Jan 2021 09:32:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:46548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728902AbhAGOca (ORCPT ); Thu, 7 Jan 2021 09:32:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1133C23356; Thu, 7 Jan 2021 14:31:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610029900; bh=IStDZx0Whs4SNoEeR0gXBadLClxAGzhGwPQOlg1kl7w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ds6zYSWNWHJtf5gNOb5GvLrWQCMJlj0JRRWKZJRS7QPvqO6mfea3KxTM0r2r82f6O OsTLwITbJ9iwQEf7uiVJmGSukzTRIbG6xcPR0bOKvBgwDXRZDUleCkm7sesne+KLlj 2rl6D1QdYgYEeIoLJMXD0mljEfPZ9iSjpQoTF3qY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tudor Ambarus , Ludovic Desroches , Vinod Koul Subject: [PATCH 4.19 2/8] dmaengine: at_hdmac: Substitute kzalloc with kmalloc Date: Thu, 7 Jan 2021 15:32:02 +0100 Message-Id: <20210107143047.875889703@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210107143047.586006010@linuxfoundation.org> References: <20210107143047.586006010@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tudor Ambarus commit a6e7f19c910068cb54983f36acebedb376f3a9ac upstream. All members of the structure are initialized below in the function, there is no need to use kzalloc. Signed-off-by: Tudor Ambarus Acked-by: Ludovic Desroches Link: https://lore.kernel.org/r/20200123140237.125799-1-tudor.ambarus@microchip.com Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/at_hdmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -1683,7 +1683,7 @@ static struct dma_chan *at_dma_xlate(str dma_cap_zero(mask); dma_cap_set(DMA_SLAVE, mask); - atslave = kzalloc(sizeof(*atslave), GFP_KERNEL); + atslave = kmalloc(sizeof(*atslave), GFP_KERNEL); if (!atslave) return NULL;