From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id 4182C20F; Fri, 8 Jun 2018 16:19:21 +0200 (CEST) In-Reply-To: <20180608124155.140663-14-jasvinder.singh@intel.com> References: <20180608124155.140663-14-jasvinder.singh@intel.com> To: test-report@dpdk.org Cc: Jasvinder Singh Message-Id: <20180608141921.4182C20F@dpdk.org> Date: Fri, 8 Jun 2018 16:19:21 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw40839 [PATCH 13/21] net/softnic: add connection agent X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2018 14:19:21 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/40839 _coding style issues_ WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #51: FILE: drivers/net/softnic/conn.c:1: +/* SPDX-License-Identifier: BSD-3-Clause CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p == NULL' #99: FILE: drivers/net/softnic/conn.c:49: + if ((p == NULL) || + (p->welcome == NULL) || + (p->prompt == NULL) || + (p->addr == NULL) || + (p->buf_size == 0) || + (p->msg_in_len_max == 0) || + (p->msg_out_len_max == 0) || + (p->msg_handle == NULL)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->welcome == NULL' #99: FILE: drivers/net/softnic/conn.c:49: + if ((p == NULL) || + (p->welcome == NULL) || + (p->prompt == NULL) || + (p->addr == NULL) || + (p->buf_size == 0) || + (p->msg_in_len_max == 0) || + (p->msg_out_len_max == 0) || + (p->msg_handle == NULL)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->prompt == NULL' #99: FILE: drivers/net/softnic/conn.c:49: + if ((p == NULL) || + (p->welcome == NULL) || + (p->prompt == NULL) || + (p->addr == NULL) || + (p->buf_size == 0) || + (p->msg_in_len_max == 0) || + (p->msg_out_len_max == 0) || + (p->msg_handle == NULL)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->addr == NULL' #99: FILE: drivers/net/softnic/conn.c:49: + if ((p == NULL) || + (p->welcome == NULL) || + (p->prompt == NULL) || + (p->addr == NULL) || + (p->buf_size == 0) || + (p->msg_in_len_max == 0) || + (p->msg_out_len_max == 0) || + (p->msg_handle == NULL)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->buf_size == 0' #99: FILE: drivers/net/softnic/conn.c:49: + if ((p == NULL) || + (p->welcome == NULL) || + (p->prompt == NULL) || + (p->addr == NULL) || + (p->buf_size == 0) || + (p->msg_in_len_max == 0) || + (p->msg_out_len_max == 0) || + (p->msg_handle == NULL)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->msg_in_len_max == 0' #99: FILE: drivers/net/softnic/conn.c:49: + if ((p == NULL) || + (p->welcome == NULL) || + (p->prompt == NULL) || + (p->addr == NULL) || + (p->buf_size == 0) || + (p->msg_in_len_max == 0) || + (p->msg_out_len_max == 0) || + (p->msg_handle == NULL)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->msg_out_len_max == 0' #99: FILE: drivers/net/softnic/conn.c:49: + if ((p == NULL) || + (p->welcome == NULL) || + (p->prompt == NULL) || + (p->addr == NULL) || + (p->buf_size == 0) || + (p->msg_in_len_max == 0) || + (p->msg_out_len_max == 0) || + (p->msg_handle == NULL)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'p->msg_handle == NULL' #99: FILE: drivers/net/softnic/conn.c:49: + if ((p == NULL) || + (p->welcome == NULL) || + (p->prompt == NULL) || + (p->addr == NULL) || + (p->buf_size == 0) || + (p->msg_in_len_max == 0) || + (p->msg_out_len_max == 0) || + (p->msg_handle == NULL)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'conn->welcome == NULL' #124: FILE: drivers/net/softnic/conn.c:74: + if ((conn->welcome == NULL) || + (conn->prompt == NULL) || + (conn->buf == NULL) || + (conn->msg_in == NULL) || + (conn->msg_out == NULL)) { CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'conn->prompt == NULL' #124: FILE: drivers/net/softnic/conn.c:74: + if ((conn->welcome == NULL) || + (conn->prompt == NULL) || + (conn->buf == NULL) || + (conn->msg_in == NULL) || + (conn->msg_out == NULL)) { CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'conn->buf == NULL' #124: FILE: drivers/net/softnic/conn.c:74: + if ((conn->welcome == NULL) || + (conn->prompt == NULL) || + (conn->buf == NULL) || + (conn->msg_in == NULL) || + (conn->msg_out == NULL)) { CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'conn->msg_in == NULL' #124: FILE: drivers/net/softnic/conn.c:74: + if ((conn->welcome == NULL) || + (conn->prompt == NULL) || + (conn->buf == NULL) || + (conn->msg_in == NULL) || + (conn->msg_out == NULL)) { CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'conn->msg_out == NULL' #124: FILE: drivers/net/softnic/conn.c:74: + if ((conn->welcome == NULL) || + (conn->prompt == NULL) || + (conn->buf == NULL) || + (conn->msg_in == NULL) || + (conn->msg_out == NULL)) { CHECK:SPACING: No space is necessary after a cast #146: FILE: drivers/net/softnic/conn.c:96: + (struct sockaddr *) &server_address, CHECK:SPACING: No space is necessary after a cast #218: FILE: drivers/net/softnic/conn.c:168: + (struct sockaddr *) &client_address, CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'errno == EAGAIN' #222: FILE: drivers/net/softnic/conn.c:172: + if ((errno == EAGAIN) || (errno == EWOULDBLOCK)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'errno == EWOULDBLOCK' #222: FILE: drivers/net/softnic/conn.c:172: + if ((errno == EAGAIN) || (errno == EWOULDBLOCK)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'errno == EAGAIN' #273: FILE: drivers/net/softnic/conn.c:223: + if ((errno == EAGAIN) || (errno == EWOULDBLOCK)) CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'errno == EWOULDBLOCK' #273: FILE: drivers/net/softnic/conn.c:223: + if ((errno == EAGAIN) || (errno == EWOULDBLOCK)) total: 0 errors, 1 warnings, 19 checks, 569 lines checked