mirror of https://gitee.com/openkylin/linux.git
serial: sh-sci: Remove useless memory allocation failure printks
Printing an error on memory allocation failures is unnecessary. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d3184e6886
commit
4205463ce1
|
@ -1172,11 +1172,8 @@ static int sci_request_irq(struct sci_port *port)
|
||||||
desc = sci_irq_desc + i;
|
desc = sci_irq_desc + i;
|
||||||
port->irqstr[j] = kasprintf(GFP_KERNEL, "%s:%s",
|
port->irqstr[j] = kasprintf(GFP_KERNEL, "%s:%s",
|
||||||
dev_name(up->dev), desc->desc);
|
dev_name(up->dev), desc->desc);
|
||||||
if (!port->irqstr[j]) {
|
if (!port->irqstr[j])
|
||||||
dev_err(up->dev, "Failed to allocate %s IRQ string\n",
|
|
||||||
desc->desc);
|
|
||||||
goto out_nomem;
|
goto out_nomem;
|
||||||
}
|
|
||||||
|
|
||||||
ret = request_irq(irq, desc->handler, up->irqflags,
|
ret = request_irq(irq, desc->handler, up->irqflags,
|
||||||
port->irqstr[j], port);
|
port->irqstr[j], port);
|
||||||
|
@ -2588,10 +2585,8 @@ sci_parse_dt(struct platform_device *pdev, unsigned int *dev_id)
|
||||||
info = match->data;
|
info = match->data;
|
||||||
|
|
||||||
p = devm_kzalloc(&pdev->dev, sizeof(struct plat_sci_port), GFP_KERNEL);
|
p = devm_kzalloc(&pdev->dev, sizeof(struct plat_sci_port), GFP_KERNEL);
|
||||||
if (!p) {
|
if (!p)
|
||||||
dev_err(&pdev->dev, "failed to allocate DT config data\n");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
/* Get the line number for the aliases node. */
|
/* Get the line number for the aliases node. */
|
||||||
id = of_alias_get_id(np, "serial");
|
id = of_alias_get_id(np, "serial");
|
||||||
|
|
Loading…
Reference in New Issue