mirror of https://gitee.com/openkylin/linux.git
usb: musb: am35x: don't print on ENOMEM
All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0c2bc5c2cb
commit
906f5dc99c
|
@ -474,10 +474,8 @@ static int am35x_probe(struct platform_device *pdev)
|
||||||
int ret = -ENOMEM;
|
int ret = -ENOMEM;
|
||||||
|
|
||||||
glue = kzalloc(sizeof(*glue), GFP_KERNEL);
|
glue = kzalloc(sizeof(*glue), GFP_KERNEL);
|
||||||
if (!glue) {
|
if (!glue)
|
||||||
dev_err(&pdev->dev, "failed to allocate glue context\n");
|
|
||||||
goto err0;
|
goto err0;
|
||||||
}
|
|
||||||
|
|
||||||
phy_clk = clk_get(&pdev->dev, "fck");
|
phy_clk = clk_get(&pdev->dev, "fck");
|
||||||
if (IS_ERR(phy_clk)) {
|
if (IS_ERR(phy_clk)) {
|
||||||
|
|
Loading…
Reference in New Issue