Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1068582rdb; Sun, 7 Jan 2024 02:03:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEp6lZn6sCm+h9k11j2r1STCtvtvqTEkwBkX6hBe9uj4AR7wX4nCHhCT7HCDgipp+/2j7Vv X-Received: by 2002:a05:620a:2401:b0:783:1aac:da69 with SMTP id d1-20020a05620a240100b007831aacda69mr1049273qkn.33.1704621784924; Sun, 07 Jan 2024 02:03:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704621784; cv=none; d=google.com; s=arc-20160816; b=RjPC7pN1hmU0mwPn0Ov7k7DMkWEiwhSnsQBkWpBc3A9sVacpfVotXXGzWiVSojU5s+ eGeCQssMSR/7MS2eHKLTqG5pPoaSAr7G2Q8eLT/drwBbnfz7md1hgpSrDmIASgyRl3Sd k0eOrLblCTe6h114gpNbdxNUnZiiXtDGqP6aCl737E1hlRYP+MNc8JozFY8FxlcUp2N0 xXd/ijgAca+Z8jUl3wn7thQ9MvXqqrvTNDq6X/9HmupRbbhSvYguEFncHkBbTh+rn4zX 9fELKz+eb/4GVtGiNebhuKqZjh/bpomr8z0hGmXnWzZARH4Uj2rrounInims7m/9m8QR 8exA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=guYrmHlQaEIHvMVuPCB9rU52mx7/3tAlTfVlX+gCQPE=; fh=dNnfSg18Ptr+OweKY4QKN/WRiJyhS4OXToJzVPS7qUI=; b=s/qUW4ukSqHE3j1T2LSc/LvlNIErRwXjZ5s/VyyyS3y/648FWp17R2Sot4oO36lJpv FoUQ1ByukZCpl5ZJYfb4zyIXQTBd1JmR5oXOgeF6EvoAzpH9DINzcvudjINRhpqpBske aet4CIpNE5OB4cmQDivpFwCyYKBXbg2WyO2YDuyDy6AypRg3Pe53j+HysK1Fr9xw14qP IbHC+pr1GKemS0Si17tV9CzBnTKq/WxD3cuz+C6j4Gu2LPeSQSKYweZaSWW01010irsL e8QWdkH/Q77XIPgVna8LOEXSpbUIWiZBReho9D2srDVG5Ol9XzHH26fcnYRItdh69eea /XXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Nc0LOoB1; spf=pass (google.com: domain of linux-kernel+bounces-18831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j5-20020a37c245000000b00781a2c1d650si5351040qkm.764.2024.01.07.02.03.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 02:03:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Nc0LOoB1; spf=pass (google.com: domain of linux-kernel+bounces-18831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18831-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AF5F71C21433 for ; Sun, 7 Jan 2024 10:03:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7AC5134D6; Sun, 7 Jan 2024 10:02:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="Nc0LOoB1" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.smtpout.orange.fr (smtp-30.smtpout.orange.fr [80.12.242.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCE4F12E5C for ; Sun, 7 Jan 2024 10:02:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from pop-os.home ([92.140.202.140]) by smtp.orange.fr with ESMTPA id MPysrRwtE9WXyMPz5rZ58k; Sun, 07 Jan 2024 11:02:23 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1704621743; bh=guYrmHlQaEIHvMVuPCB9rU52mx7/3tAlTfVlX+gCQPE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Nc0LOoB13e1Vp9mhdupgtFzzwr/c6ClTvOLRElyJK8sw2al1sVCU51swf35Nd7DP3 FPi5/N89KAt5lMcBZgNlCur5gjUts6yJRB5+pwWlVVf3Y7BO5sRXPkHFE+JyviyPs1 1Mz67yh96ZIqXVYJTW1I9Y0XQuqjwbCd1RgJdoeBZbiww2xsw78yBwnfWgNhn1rNDR P6LXNjRAzAMCTXmcRycl00hvHtO3POtc26EJWmV4P6mhBfLRtnFltKoYbrKa12Ae+i 0EqUdH87+0wSk44ootj5AMcCMTR7qU98i81pc69HKcNsXxJugIBB+Jt8FATsjuA01+ tOk4F1KFo2qnQ== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 07 Jan 2024 11:02:23 +0100 X-ME-IP: 92.140.202.140 From: Christophe JAILLET To: vkoul@kernel.org, jiaheng.fan@nxp.com, peng.ma@nxp.com, wen.he_1@nxp.com Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 3/3] dmaengine: fsl-qdma: Remove a useless devm_kfree() Date: Sun, 7 Jan 2024 11:02:05 +0100 Message-Id: <6b7f60aa2b92f73b35c586886daffc1a5ac58697.1704621515.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 'status_head' is a managed resource. It will be freed automatically if fsl_qdma_prep_status_queue(), and so fsl_qdma_probe(), fails. Remove the redundant (and harmless) devm_kfree() call. Signed-off-by: Christophe JAILLET --- drivers/dma/fsl-qdma.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/dma/fsl-qdma.c b/drivers/dma/fsl-qdma.c index 3a5595a1d442..f167c96f3fe8 100644 --- a/drivers/dma/fsl-qdma.c +++ b/drivers/dma/fsl-qdma.c @@ -568,10 +568,9 @@ static struct fsl_qdma_queue status_size, &status_head->bus_addr, GFP_KERNEL); - if (!status_head->cq) { - devm_kfree(&pdev->dev, status_head); + if (!status_head->cq) return NULL; - } + status_head->n_cq = status_size; status_head->virt_head = status_head->cq; status_head->virt_tail = status_head->cq; -- 2.34.1