Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1917428pxb; Wed, 2 Feb 2022 15:55:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjgUQv+RdkZ7ClJNUpNVYbrdHO0HUPPqWFws/opIrfKP/hTqDbwkbo7y4z7v5kRiINPiBB X-Received: by 2002:a17:902:e887:: with SMTP id w7mr33503177plg.161.1643846102306; Wed, 02 Feb 2022 15:55:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643846102; cv=none; d=google.com; s=arc-20160816; b=OwDRK5HEMM3381boxLoSEJSGaG4YuL5huphExmbEAzcv6w3ED/sOsFr0v7ikSp1I0R 0gVTmTosWe9LvaAjUv94dybXXAYVOAmEPdg9JP+u0rRXiaTPndJS3TTwOwxvwoJqeO1e 6ny6L/p4UU92CiNpCtQjnWM0r8sApsQlbjZgc8fleEQknC8ljnxl2QRYlNl7LC+YqMWx eICC4XXY9yvmudFLqnuwBdTF8nasnlsZzuR6xW75ze5ogbxBQxHqxtV0dGyxbFeIqXE+ Az1tjzSGGQ+7b8BUnQV85Cjd2Bh/lhbChK4/FUfL8gyRYYuNgKrb3U4+gkfIUxfMn69j yR3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=yAavH0DGVj3x1fXrXaH7bWjlsj/KV7N7RlrGy93PolY=; b=KoMAqd4iESjvG0DGhXateRv8sVXdz26XqN0vCQLOZHEEPzJmH4+xYeQxX5+1n9bj9q qGVHewwrEZY1vgdr1sttc9d4MH4X1acdWgReR3F9qtr8Bb0jJE9vcF+FtCYeiC66bXhm GzRni6pnFryDumptGoGPA/OzDS1fPqgtJ/XEFbl9nUhKjpeSqxSMD5QmPMEVMw5MDYGK 9k3ewB8VOpDkhep4gxBFNnTpOp1buUx0E5Ixzh9f8Z0n02Lw4bwCYdN7r1gy5N760FHF 1R544bPuHU6DmEgvRS39pUOqyaTczfbL043WHUZbDqrlksckWbaAeOE9NnLiLJrRaNAd 7EAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10si21226899plg.617.2022.02.02.15.54.50; Wed, 02 Feb 2022 15:55:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346747AbiBBSqF (ORCPT + 99 others); Wed, 2 Feb 2022 13:46:05 -0500 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:54596 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346733AbiBBSqD (ORCPT ); Wed, 2 Feb 2022 13:46:03 -0500 Received: from [192.168.1.18] ([90.126.236.122]) by smtp.orange.fr with ESMTPA id FKdinz4vkzBp5FKdinKnVu; Wed, 02 Feb 2022 19:46:00 +0100 X-ME-Helo: [192.168.1.18] X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Wed, 02 Feb 2022 19:46:00 +0100 X-ME-IP: 90.126.236.122 Message-ID: Date: Wed, 2 Feb 2022 19:45:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] dmaengine: ptdma: Fix the error handling path in pt_core_init() Content-Language: en-US To: Dan Carpenter Cc: Sanjay R Mehta , Vinod Koul , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, dmaengine@vger.kernel.org References: <1b2573cf3cd077494531993239f80c08e7feb39e.1643551909.git.christophe.jaillet@wanadoo.fr> <20220202071530.GV1951@kadam> From: Christophe JAILLET In-Reply-To: <20220202071530.GV1951@kadam> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 02/02/2022 à 08:15, Dan Carpenter a écrit : > On Sun, Jan 30, 2022 at 03:12:09PM +0100, Christophe JAILLET wrote: >> @@ -230,7 +230,7 @@ int pt_core_init(struct pt_device *pt) >> /* Request an irq */ >> ret = request_irq(pt->pt_irq, pt_core_irq_handler, 0, dev_name(pt->dev), pt); >> if (ret) >> - goto e_pool; >> + goto e_dma_alloc; > > These are ComeFrom label names. It's an unfortunate style of naming > labels based on the goto location instead of saying what the goto does. > > This is one of those cases where the code has moved on, and now the name > no longer points to where it came from or to where it's going. It just > stands as a Hyperart Thomasson pointing to the past. It reminds us of > change and decay. Take time to smell the air in autumn. Beauty is all > around. > > regards, > dan carpenter > Autumn is over. Winter is coming (tm). And Spring will soon be there. I'll try to send a refreshing update as a V2 to go one step further and do some spring cleaning in the labels used here. CJ