OSDN Git Service

sata_rcar: Remove ata_host_alloc() error printing
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 29 Apr 2019 15:22:09 +0000 (17:22 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 May 2019 17:19:32 +0000 (11:19 -0600)
ata_host_alloc() can only fail due to memory allocation failures.
Hence there is no need to print a message, as the memory allocation core
code already takes care of that.

Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/sata_rcar.c

index 59b2317..3495e17 100644 (file)
@@ -909,7 +909,6 @@ static int sata_rcar_probe(struct platform_device *pdev)
 
        host = ata_host_alloc(dev, 1);
        if (!host) {
-               dev_err(dev, "ata_host_alloc failed\n");
                ret = -ENOMEM;
                goto err_pm_put;
        }