[PATCH] ASoC: fsl: Check before clk_put() not needed

2022-06-01 Thread Yihao Han
clk_put() already checks the clk ptr using !clk and IS_ERR() so there is no need to check it again before calling it. Signed-off-by: Yihao Han --- sound/soc/fsl/imx-sgtl5000.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx

[PATCH v2] macintosh: macio_asic: fix resource_size.cocci warnings

2022-04-21 Thread Yihao Han
. Generated by: scripts/coccinelle/api/resource_size.cocci Signed-off-by: Yihao Han --- v2: drop parenthesis around resource_size(res) and edit commit message --- drivers/macintosh/macio_asic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/macintosh/macio_asic.c b

[PATCH] macintosh: macio_asic: fix resource_size.cocci warnings

2022-04-17 Thread Yihao Han
. Generated by: scripts/coccinelle/api/resource_size.cocci Signed-off-by: Yihao Han --- drivers/macintosh/macio_asic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c index 1943a007e2d5..260fccb3863e 100644 --- a