If probe fails, the kernel will print the error code. There's no need to
driver to do that.

Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com>
---
 drivers/media/i2c/dw9714.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/dw9714.c b/drivers/media/i2c/dw9714.c
index 3dc2100470a1..26d83693a681 100644
--- a/drivers/media/i2c/dw9714.c
+++ b/drivers/media/i2c/dw9714.c
@@ -171,7 +171,7 @@ static int dw9714_probe(struct i2c_client *client)
 err_cleanup:
        v4l2_ctrl_handler_free(&dw9714_dev->ctrls_vcm);
        media_entity_cleanup(&dw9714_dev->sd.entity);
-       dev_err(&client->dev, "Probe failed: %d\n", rval);
+
        return rval;
 }
 
-- 
2.11.0

Reply via email to