drivers/net: Remove unnecessary k.alloc/v.alloc OOM messages
alloc failures use dump_stack so emitting an additional out-of-memory message is an unnecessary duplication. Remove the allocation failure messages. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5f3d9cb296
commit
e404decb0f
@@ -670,10 +670,8 @@ static int __init pptp_init_module(void)
|
||||
pr_info("PPTP driver version " PPTP_DRIVER_VERSION "\n");
|
||||
|
||||
callid_sock = vzalloc((MAX_CALLID + 1) * sizeof(void *));
|
||||
if (!callid_sock) {
|
||||
pr_err("PPTP: cann't allocate memory\n");
|
||||
if (!callid_sock)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
err = gre_add_protocol(&gre_pptp_protocol, GREPROTO_PPTP);
|
||||
if (err) {
|
||||
|
Reference in New Issue
Block a user