Commit ad4437d4edeabe6a8d34f8cb3865be005ded6a1e

Authored by Joe Perches
Committed by David S. Miller
1 parent 8c98653f05

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>

Showing 1 changed file with 0 additions and 6 deletions Side-by-side Diff

drivers/net/caif/caif_shmcore.c
... ... @@ -633,9 +633,6 @@
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 }
... ... @@ -662,9 +659,6 @@
662 659 kmalloc(sizeof(struct buf_list), GFP_KERNEL);
663 660  
664 661 if (rx_buf == NULL) {
665   - pr_warn("ERROR, Could not"
666   - " allocate dynamic mem.for rx_buf,"
667   - " Bailing out ...\n");
668 662 free_netdev(pshm_dev->pshm_netdev);
669 663 return -ENOMEM;
670 664 }