aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/caif/caif_shmcore.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-02-03 12:28:08 -0500
committerDavid S. Miller <davem@davemloft.net>2013-02-04 13:22:33 -0500
commitad4437d4edeabe6a8d34f8cb3865be005ded6a1e (patch)
tree8125a331567be407cf1b2aaacccb2d85025adfa0 /drivers/net/caif/caif_shmcore.c
parent8c98653f05534acd1cb07ea4929702a3659177d1 (diff)
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>
Diffstat (limited to 'drivers/net/caif/caif_shmcore.c')
-rw-r--r--drivers/net/caif/caif_shmcore.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/caif/caif_shmcore.c b/drivers/net/caif/caif_shmcore.c
index bc497d718858..bce8bac311c9 100644
--- a/drivers/net/caif/caif_shmcore.c
+++ b/drivers/net/caif/caif_shmcore.c
@@ -633,9 +633,6 @@ int caif_shmcore_probe(struct shmdev_layer *pshm_dev)
633 kmalloc(sizeof(struct buf_list), GFP_KERNEL); 633 kmalloc(sizeof(struct buf_list), GFP_KERNEL);
634 634
635 if (tx_buf == NULL) { 635 if (tx_buf == NULL) {
636 pr_warn("ERROR, Could not"
637 " allocate dynamic mem. for tx_buf,"
638 " Bailing out ...\n");
639 free_netdev(pshm_dev->pshm_netdev); 636 free_netdev(pshm_dev->pshm_netdev);
640 return -ENOMEM; 637 return -ENOMEM;
641 } 638 }
@@ -662,9 +659,6 @@ int caif_shmcore_probe(struct shmdev_layer *pshm_dev)
662 kmalloc(sizeof(struct buf_list), GFP_KERNEL); 659 kmalloc(sizeof(struct buf_list), GFP_KERNEL);
663 660
664 if (rx_buf == NULL) { 661 if (rx_buf == NULL) {
665 pr_warn("ERROR, Could not"
666 " allocate dynamic mem.for rx_buf,"
667 " Bailing out ...\n");
668 free_netdev(pshm_dev->pshm_netdev); 662 free_netdev(pshm_dev->pshm_netdev);
669 return -ENOMEM; 663 return -ENOMEM;
670 } 664 }