Skip to content

Commit

Permalink
sata_rcar: Remove ata_host_alloc() error printing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Jens Axboe committed May 9, 2019
1 parent e78c21d commit cf12c67
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/ata/sata_rcar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cf12c67

Please sign in to comment.