lkml.org 
[lkml]   [2011]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 10/24] econet: Remove unnecessary OOM logging messages
    Date
    Removing unnecessary messages saves code and text.

    Site specific OOM messages are duplications of a generic MM
    out of memory message and aren't really useful, so just
    delete them.

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    net/econet/af_econet.c | 4 +---
    1 files changed, 1 insertions(+), 3 deletions(-)

    diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c
    index 1c1f26c..6ab525d 100644
    --- a/net/econet/af_econet.c
    +++ b/net/econet/af_econet.c
    @@ -865,11 +865,9 @@ static void aun_incoming(struct sk_buff *skb, struct aunhdr *ah, size_t len)

    newskb = alloc_skb((len - sizeof(struct aunhdr) + 15) & ~15,
    GFP_ATOMIC);
    - if (newskb == NULL) {
    - pr_debug("AUN: memory squeeze, dropping packet\n");
    + if (newskb == NULL)
    /* Send nack and hope sender tries again */
    goto bad;
    - }

    memcpy(skb_put(newskb, len - sizeof(struct aunhdr)), (void *)(ah + 1),
    len - sizeof(struct aunhdr));
    --
    1.7.6.405.gc1be0


    \
     
     \ /
      Last update: 2011-08-29 23:23    [W:0.021 / U:30.556 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site