hwrng: imx-rngc - (trivial) simplify error prints
authorMartin Kaiser <martin@kaiser.cx>
Thu, 5 Mar 2020 20:58:22 +0000 (21:58 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Mar 2020 12:00:15 +0000 (23:00 +1100)
Remove the device name, it is added by the dev_...() routines.

Drop the error code as well. It will be shown by the driver core when
the probe operation failed.

Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/imx-rngc.c

index 9038945..92e93ab 100644 (file)
@@ -258,14 +258,14 @@ static int imx_rngc_probe(struct platform_device *pdev)
        if (self_test) {
                ret = imx_rngc_self_test(rngc);
                if (ret) {
-                       dev_err(rngc->dev, "FSL RNGC self test failed.\n");
+                       dev_err(rngc->dev, "self test failed\n");
                        goto err;
                }
        }
 
        ret = hwrng_register(&rngc->rng);
        if (ret) {
-               dev_err(&pdev->dev, "FSL RNGC registering failed (%d)\n", ret);
+               dev_err(&pdev->dev, "hwrng registration failed\n");
                goto err;
        }