Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

caif: Remove unnecessary alloc/OOM messages

alloc failures already get standardized OOM
messages and a dump_stack.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
ad4437d4 8c98653f

-6
-6
drivers/net/caif/caif_shmcore.c
··· 633 633 kmalloc(sizeof(struct buf_list), GFP_KERNEL); 634 634 635 635 if (tx_buf == NULL) { 636 - pr_warn("ERROR, Could not" 637 - " allocate dynamic mem. for tx_buf," 638 - " Bailing out ...\n"); 639 636 free_netdev(pshm_dev->pshm_netdev); 640 637 return -ENOMEM; 641 638 } ··· 659 662 kmalloc(sizeof(struct buf_list), GFP_KERNEL); 660 663 661 664 if (rx_buf == NULL) { 662 - pr_warn("ERROR, Could not" 663 - " allocate dynamic mem.for rx_buf," 664 - " Bailing out ...\n"); 665 665 free_netdev(pshm_dev->pshm_netdev); 666 666 return -ENOMEM; 667 667 }