* [PATCH] media: atomisp: Remove unneeded return variable
@ 2021-02-04 7:02 Yang Li
0 siblings, 0 replies; only message in thread
From: Yang Li @ 2021-02-04 7:02 UTC (permalink / raw)
To: vkoul
Cc: alsa-devel, pierre-louis.bossart, linux-kernel, Yang Li,
sanyog.r.kale, yung-chuan.liao
This patch removes unneeded return variables, using only
'0' instead.
It fixes the following warning detected by coccinelle:
./drivers/staging/media/atomisp/pci/sh_css_mipi.c:39:5-8: Unneeded
variable: "err". Return "0" on line 44
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
drivers/staging/media/atomisp/pci/sh_css_mipi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/sh_css_mipi.c b/drivers/staging/media/atomisp/pci/sh_css_mipi.c
index d5ae7f0..de8ee45 100644
--- a/drivers/staging/media/atomisp/pci/sh_css_mipi.c
+++ b/drivers/staging/media/atomisp/pci/sh_css_mipi.c
@@ -36,12 +36,10 @@
int
ia_css_mipi_frame_specify(const unsigned int size_mem_words,
const bool contiguous) {
- int err = 0;
-
my_css.size_mem_words = size_mem_words;
(void)contiguous;
- return err;
+ return 0;
}
/*
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-04 7:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-04 7:02 [PATCH] media: atomisp: Remove unneeded return variable Yang Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).