IB/nes: Remove 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>
这个提交包含在:
Leon Romanovsky
2016-11-03 16:44:19 +02:00
提交者 Doug Ledford
父节点 c40a83b978
当前提交 2e65835a1b
修改 5 个文件,包含 6 行新增19 行删除

查看文件

@@ -2282,10 +2282,8 @@ static struct nes_cm_listener *mini_cm_listen(struct nes_cm_core *cm_core,
if (!listener) {
/* create a CM listen node (1/2 node to compare incoming traffic to) */
listener = kzalloc(sizeof(*listener), GFP_ATOMIC);
if (!listener) {
nes_debug(NES_DBG_CM, "Not creating listener memory allocation failed\n");
if (!listener)
return NULL;
}
listener->loc_addr = cm_info->loc_addr;
listener->loc_port = cm_info->loc_port;