1
0

IB/ocrdma: Remove and fix debug prints after allocation failure

The prints after [k|v][m|z|c]alloc() functions are not needed,
because in case of failure, allocator will print their internal
error prints anyway.

Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Este cometimento está contido em:
Leon Romanovsky
2016-11-03 16:44:22 +02:00
cometido por Doug Ledford
ascendente 02d93f8e6b
cometimento 740c330ee6
2 ficheiros modificados com 3 adições e 6 eliminações

Ver ficheiro

@@ -84,10 +84,8 @@ bool ocrdma_alloc_stats_resources(struct ocrdma_dev *dev)
/* Alloc debugfs mem */
mem->debugfs_mem = kzalloc(OCRDMA_MAX_DBGFS_MEM, GFP_KERNEL);
if (!mem->debugfs_mem) {
pr_err("%s: stats debugfs mem allocation failed\n", __func__);
if (!mem->debugfs_mem)
return false;
}
return true;
}