media: i2c: imx290: Omit a variable reassignment in imx290_probe()
PATCH 1/1 media: i2c: imx290: Omit a variable reassignment in imx290_probe()
From: Markus Elfring <[email protected]>
Date: Mon, 20 Oct 2025 14:10:20 +0200
An error code was assigned to a variable and checked accordingly. This value was passed to a dev_err_probe() call in an if branch. This function is documented in the way that the same value is returned. Thus delete a redundant variable reassignment.
The source code was transformed by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- drivers/media/i2c/imx290.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/imx290.c +1 -1
@@ -1633,7 +1633,7 @@ static int imx290_probe(struct i2c_client *client)*/ ret =imx290_stop_streaming (imx290);if (ret) { - ret =dev_err_probe (dev, ret,"Could not initialize device\n" ); +dev_err_probe (dev, ret,"Could not initialize device\n" ); goto err_pm; }
Signature · 1 line
2.51.1