caif: Remove unnecessary alloc/OOM messages
authorJoe Perches <joe@perches.com>
Sun, 3 Feb 2013 17:28:08 +0000 (17:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Feb 2013 18:22:33 +0000 (13:22 -0500)
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>
drivers/net/caif/caif_shmcore.c

index bc497d718858ed99e6281dc2c28bad47ec891c6b..bce8bac311c99d0d1d9a2f3a07dc6c0a71fee836 100644 (file)
@@ -633,9 +633,6 @@ int caif_shmcore_probe(struct shmdev_layer *pshm_dev)
                                kmalloc(sizeof(struct buf_list), GFP_KERNEL);
 
                if (tx_buf == NULL) {
-                       pr_warn("ERROR, Could not"
-                                       " allocate dynamic mem. for tx_buf,"
-                                       " Bailing out ...\n");
                        free_netdev(pshm_dev->pshm_netdev);
                        return -ENOMEM;
                }
@@ -662,9 +659,6 @@ int caif_shmcore_probe(struct shmdev_layer *pshm_dev)
                                kmalloc(sizeof(struct buf_list), GFP_KERNEL);
 
                if (rx_buf == NULL) {
-                       pr_warn("ERROR, Could not"
-                                       " allocate dynamic mem.for rx_buf,"
-                                       " Bailing out ...\n");
                        free_netdev(pshm_dev->pshm_netdev);
                        return -ENOMEM;
                }