* [PATCH][next] media: hi556: remove redundant assignment to variable enable
@ 2025-02-05 11:40 Colin Ian King
0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2025-02-05 11:40 UTC (permalink / raw)
To: Sakari Ailus, Mauro Carvalho Chehab, linux-media
Cc: kernel-janitors, linux-kernel
The variable enable is being assigned a value that is never read
afterwards. The assignment is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/media/i2c/hi556.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/media/i2c/hi556.c b/drivers/media/i2c/hi556.c
index 3ac42d1ab8b4..a7bc86eaadbc 100644
--- a/drivers/media/i2c/hi556.c
+++ b/drivers/media/i2c/hi556.c
@@ -1053,7 +1053,6 @@ static int hi556_set_stream(struct v4l2_subdev *sd, int enable)
ret = hi556_start_streaming(hi556);
if (ret) {
- enable = 0;
hi556_stop_streaming(hi556);
pm_runtime_put(&client->dev);
}
--
2.47.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-05 11:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-05 11:40 [PATCH][next] media: hi556: remove redundant assignment to variable enable Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®