can: Remove unnecessary alloc/OOM messages
alloc failures already get standardized OOM messages and a dump_stack. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ad4437d4ed
commit
09da6c5f60
@@ -958,10 +958,8 @@ static int usb_8dev_probe(struct usb_interface *intf,
|
||||
|
||||
priv->cmd_msg_buffer = kzalloc(sizeof(struct usb_8dev_cmd_msg),
|
||||
GFP_KERNEL);
|
||||
if (!priv->cmd_msg_buffer) {
|
||||
netdev_err(netdev, "Couldn't alloc Tx buffer\n");
|
||||
if (!priv->cmd_msg_buffer)
|
||||
goto cleanup_candev;
|
||||
}
|
||||
|
||||
usb_set_intfdata(intf, priv);
|
||||
|
||||
|
Reference in New Issue
Block a user