diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 20:43:09 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-26 00:00:44 +0100 |
commit | 76f014689093aa8eecc1061e13cc4f8694967a12 (patch) | |
tree | d68df7e97b46f672cd944e89e62d823149781d07 /babeld | |
parent | *: use array_size instead of raw division (diff) | |
download | frr-76f014689093aa8eecc1061e13cc4f8694967a12.tar.xz frr-76f014689093aa8eecc1061e13cc4f8694967a12.zip |
*: do not check XMALLOC / XCALLOC for null ret
They never return NULL
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/babel_interface.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c index 79242f5b8..973c4618f 100644 --- a/babeld/babel_interface.c +++ b/babeld/babel_interface.c @@ -1415,8 +1415,6 @@ babel_interface_allocate (void) { babel_interface_nfo *babel_ifp; babel_ifp = XMALLOC(MTYPE_BABEL_IF, sizeof(babel_interface_nfo)); - if(babel_ifp == NULL) - return NULL; /* Here are set the default values for an interface. */ memset(babel_ifp, 0, sizeof(babel_interface_nfo)); |