[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250407063011.2771977-1-nichen@iscas.ac.cn>
Date: Mon, 7 Apr 2025 14:30:11 +0800
From: Chen Ni <nichen@...as.ac.cn>
To: shenghao-ding@...com,
kevin-lu@...com,
baojun.xu@...com,
lgirdwood@...il.com,
broonie@...nel.org,
perex@...ex.cz,
tiwai@...e.com
Cc: linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
Chen Ni <nichen@...as.ac.cn>
Subject: [PATCH] ASoC: tas2781-fmwlib: 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>
---
sound/soc/codecs/tas2781-fmwlib.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/codecs/tas2781-fmwlib.c b/sound/soc/codecs/tas2781-fmwlib.c
index 13a197468193..684d23e5905e 100644
--- a/sound/soc/codecs/tas2781-fmwlib.c
+++ b/sound/soc/codecs/tas2781-fmwlib.c
@@ -2074,8 +2074,7 @@ int tas2781_load_calibration(void *context, char *file_name,
}
out:
- if (fw_entry)
- release_firmware(fw_entry);
+ release_firmware(fw_entry);
return ret;
}
--
2.25.1
Powered by blists - more mailing lists