drivers/ps3: Remove duplicate error messages
Remove duplicate memory allocation failure error messages. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/c763425d8e6f680d3180b3246c9e77727df179d0.1589049250.git.geoff@infradead.org
This commit is contained in:
Родитель
331aa46aaf
Коммит
6a8aa782ce
|
@ -1111,8 +1111,6 @@ int ps3_lpm_open(enum ps3_lpm_tb_type tb_type, void *tb_cache,
|
||||||
lpm_priv->tb_cache_internal = kzalloc(
|
lpm_priv->tb_cache_internal = kzalloc(
|
||||||
lpm_priv->tb_cache_size + 127, GFP_KERNEL);
|
lpm_priv->tb_cache_size + 127, GFP_KERNEL);
|
||||||
if (!lpm_priv->tb_cache_internal) {
|
if (!lpm_priv->tb_cache_internal) {
|
||||||
dev_err(sbd_core(), "%s:%u: alloc internal tb_cache "
|
|
||||||
"failed\n", __func__, __LINE__);
|
|
||||||
result = -ENOMEM;
|
result = -ENOMEM;
|
||||||
goto fail_malloc;
|
goto fail_malloc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -917,7 +917,6 @@ static int ps3_vuart_bus_interrupt_get(void)
|
||||||
vuart_bus_priv.bmp = kzalloc(sizeof(struct ports_bmp), GFP_KERNEL);
|
vuart_bus_priv.bmp = kzalloc(sizeof(struct ports_bmp), GFP_KERNEL);
|
||||||
|
|
||||||
if (!vuart_bus_priv.bmp) {
|
if (!vuart_bus_priv.bmp) {
|
||||||
pr_debug("%s:%d: kzalloc failed.\n", __func__, __LINE__);
|
|
||||||
result = -ENOMEM;
|
result = -ENOMEM;
|
||||||
goto fail_bmp_malloc;
|
goto fail_bmp_malloc;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче