lkml.org 
[lkml]   [2017]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/5] sctp: Delete an error message for a failed memory allocation in sctp_init()
    On Mon, May 22, 2017 at 06:38:21PM +0200, SF Markus Elfring wrote:
    > From: Markus Elfring <elfring@users.sourceforge.net>
    > Date: Mon, 22 May 2017 17:28:14 +0200
    >
    > Omit an extra message for a memory allocation failure in this function.
    >
    > This issue was detected by using the Coccinelle software.
    >
    > Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
    > Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>

    Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>

    > ---
    > net/sctp/protocol.c | 1 -
    > 1 file changed, 1 deletion(-)
    >
    > diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
    > index 2b1a6215bd2f..5e7c8a344770 100644
    > --- a/net/sctp/protocol.c
    > +++ b/net/sctp/protocol.c
    > @@ -1447,5 +1447,4 @@ static __init int sctp_init(void)
    > if (!sctp_ep_hashtable) {
    > - pr_err("Failed endpoint_hash alloc\n");
    > status = -ENOMEM;
    > goto err_ehash_alloc;
    > }
    > --
    > 2.13.0
    >
    > --
    > To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    >

    \
     
     \ /
      Last update: 2017-05-22 21:53    [W:6.758 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site