[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250410073924.3558570-1-nichen@iscas.ac.cn>
Date: Thu, 10 Apr 2025 15:39:24 +0800
From: Chen Ni <nichen@...as.ac.cn>
To: vkoul@...nel.org,
yung-chuan.liao@...ux.intel.com,
pierre-louis.bossart@...ux.dev,
sanyog.r.kale@...el.com
Cc: linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
Chen Ni <nichen@...as.ac.cn>
Subject: [PATCH] soundwire: debugfs: remove unnecessary NULL check before release_firmware()
release_firmware() checks for NULL pointers internally.
Remove unneeded NULL check for fmw here.
Signed-off-by: Chen Ni <nichen@...as.ac.cn>
---
drivers/soundwire/debugfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/soundwire/debugfs.c b/drivers/soundwire/debugfs.c
index 3099ea074f10..af37299c7d9d 100644
--- a/drivers/soundwire/debugfs.c
+++ b/drivers/soundwire/debugfs.c
@@ -292,8 +292,7 @@ static int cmd_go(void *data, u64 value)
finish_t = ktime_get();
out:
- if (fw)
- release_firmware(fw);
+ release_firmware(fw);
pm_runtime_mark_last_busy(&slave->dev);
pm_runtime_put(&slave->dev);
--
2.25.1
Powered by blists - more mailing lists