Message ID | 20250205114008.878390-1-colin.i.king@gmail.com |
---|---|
State | Accepted |
Commit | d93c0a7923c13f38482d817e05a93d9b65dae955 |
Headers | show |
Series | [next] media: hi556: remove redundant assignment to variable enable | expand |
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); }
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(-)