]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: dw9714: Remove useless error message
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 5 Oct 2018 21:19:38 +0000 (17:19 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 8 Oct 2018 15:51:05 +0000 (11:51 -0400)
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.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/dw9714.c

index 3dc2100470a1cdf5ecb5c2c1115c921d10be09b8..26d83693a6816fe0ad8d8aa8289f9f427a427046 100644 (file)
@@ -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;
 }