From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B37FC218AAF for ; Mon, 8 Dec 2025 15:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765208015; cv=none; b=h7aXByfmgctfZZUxRwC3K7b6co36dkpg0Mu9wG1tHTJWh6W4KWkllmYDOtif5REuU9eb4HR10vw9QdOpyudxX8pcThoH28mTnaAuYSo+jZK5xhaxyDOKCEqS/40pf30ZReolR7UtPx8Zv42pTBxohexFNCAsNW2cXfAM6K5B4Xg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765208015; c=relaxed/simple; bh=GsD6lPixhkBgIx9YiKzz82Et+nwA/MNGJ5gmhFLtJSg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VbIF6fjTH8C6ykk7icFyCB8ci0m2hBrgtweuvhnL3FAtoURiDcO1JNTstXcszUYjldtvBYfOLr6fuOXyhBIFb+YhG+NXNZxb0GyH0Sit5E40ctKSjLAgW4A+Fqd9Q7NAMDZ3/fU4KvHxwZ769QFx1+wCUCSQ5TMdNsCs3Q69DlQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RvymSSsr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RvymSSsr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A677C4CEF1; Mon, 8 Dec 2025 15:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765208015; bh=GsD6lPixhkBgIx9YiKzz82Et+nwA/MNGJ5gmhFLtJSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RvymSSsrUVKugi1HAoomd1+cIUVZJ8ETUuThS7pGA0AzhkP94lu2cGsGT0XmDevyf TJQLXGMO3TRm4y9Fo94rt9ZWWW1EByTtSzayQ2TBb95QjHd6G2bfDXc5E4NLJ8zLKJ GyYQJwb+vVw4R6AZnXzjJp53j6gIG5ZU1q1u097lgVsi9K50HSdzzrWbAhOCyoytMt 1FqmLXaoCk+rYS1T+FvhWOf+3pWVUAsstIREVqouXevUREAuZYQURURMLqV/T1sa30 Lk94nTXd+o6Yl6xyavAMTXMDy9zJNEJmrUDiCpY1Lp/eSBI+QQLU9JgDG19+5DX1w9 z44Rfu+SXWEhA== Received: from johan by theta with local (Exim 4.99) (envelope-from ) id 1vSdGx-00000000HrZ-1aIP; Mon, 08 Dec 2025 16:35:35 +0100 From: Johan Hovold To: Greg Kroah-Hartman , Alexander Shishkin Cc: linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v3 2/2] intel_th: rename error label Date: Mon, 8 Dec 2025 16:35:24 +0100 Message-ID: <20251208153524.68637-3-johan@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251208153524.68637-1-johan@kernel.org> References: <20251208153524.68637-1-johan@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use a more a descriptive name for the error label that is used to put the reference to dev. Signed-off-by: Johan Hovold --- drivers/hwtracing/intel_th/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hwtracing/intel_th/core.c b/drivers/hwtracing/intel_th/core.c index d9c17214d3dc..2482ecf5776b 100644 --- a/drivers/hwtracing/intel_th/core.c +++ b/drivers/hwtracing/intel_th/core.c @@ -815,14 +815,14 @@ static int intel_th_output_open(struct inode *inode, struct file *file) if (!dev->driver) { err = -ENODEV; - goto out_put_device; + goto err_put_dev; } thdrv = to_intel_th_driver(dev->driver); fops = fops_get(thdrv->fops); if (!fops) { err = -ENODEV; - goto out_put_device; + goto err_put_dev; } replace_fops(file, fops); @@ -832,12 +832,12 @@ static int intel_th_output_open(struct inode *inode, struct file *file) if (file->f_op->open) { err = file->f_op->open(inode, file); if (err) - goto out_put_device; + goto err_put_dev; } return 0; -out_put_device: +err_put_dev: put_device(dev); return err; -- 2.52.0