summaryrefslogtreecommitdiff
path: root/drivers/hwtracing
diff options
context:
space:
mode:
authorElsanti <santiagojoseleal27@gmail.com>2026-02-28 18:23:44 -0400
committerSuzuki K Poulose <suzuki.poulose@arm.com>2026-03-02 09:14:49 +0000
commit061c39a17136376f368a6082d4948301641f7db1 (patch)
tree3c69c0b9e6fa335db7fe979bebd1d48d37675066 /drivers/hwtracing
parent87c266bb30dc09979b7b7e8f962598367d626b57 (diff)
downloadlinux-next-061c39a17136376f368a6082d4948301641f7db1.tar.gz
linux-next-061c39a17136376f368a6082d4948301641f7db1.zip
drivers/hwtracing/coresight: remove unneeded variable in tmc_crashdata_release()
The variable 'ret' is initialized to 0, never modified, and returned directly. Remove it and return 0 explicitly. Signed-off-by: Elsanti <santiagojoseleal27@gmail.com> Reviewed-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20260228222344.288639-1-santiagojoseleal27@gmail.com
Diffstat (limited to 'drivers/hwtracing')
-rw-r--r--drivers/hwtracing/coresight/coresight-tmc-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hwtracing/coresight/coresight-tmc-core.c b/drivers/hwtracing/coresight/coresight-tmc-core.c
index 58b469ee73b4..c89fe996af23 100644
--- a/drivers/hwtracing/coresight/coresight-tmc-core.c
+++ b/drivers/hwtracing/coresight/coresight-tmc-core.c
@@ -397,7 +397,6 @@ static ssize_t tmc_crashdata_read(struct file *file, char __user *data,
static int tmc_crashdata_release(struct inode *inode, struct file *file)
{
- int ret = 0;
unsigned long flags;
struct tmc_resrv_buf *rbuf;
struct tmc_drvdata *drvdata = container_of(file->private_data,
@@ -410,7 +409,7 @@ static int tmc_crashdata_release(struct inode *inode, struct file *file)
raw_spin_unlock_irqrestore(&drvdata->spinlock, flags);
dev_dbg(&drvdata->csdev->dev, "%s: released\n", __func__);
- return ret;
+ return 0;
}
static const struct file_operations tmc_crashdata_fops = {