automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw29821 [PATCH v5 2/5] net/mlx5: install a socket to exchange a file descriptor
       [not found] <20171006154552.161159-3-xuemingl@mellanox.com>
@ 2017-10-06 15:47 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2017-10-06 15:47 UTC (permalink / raw)
  To: test-report; +Cc: Xueming Li

Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/29821

_coding style issues_


CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'cmsg->cmsg_type == SCM_CREDENTIALS'
#432: FILE: drivers/net/mlx5/mlx5_socket.c:175:
+	if ((cmsg->cmsg_type == SCM_CREDENTIALS) &&
+		(cmsg->cmsg_len >= sizeof(*cred))) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'cmsg->cmsg_len >= sizeof(*cred)'
#432: FILE: drivers/net/mlx5/mlx5_socket.c:175:
+	if ((cmsg->cmsg_type == SCM_CREDENTIALS) &&
+		(cmsg->cmsg_len >= sizeof(*cred))) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'cred == NULL'
#443: FILE: drivers/net/mlx5/mlx5_socket.c:186:
+	if ((cred == NULL) || (cred->uid != getuid()) ||
+	    (cred->gid != getgid())) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'cred->uid != getuid()'
#443: FILE: drivers/net/mlx5/mlx5_socket.c:186:
+	if ((cred == NULL) || (cred->uid != getuid()) ||
+	    (cred->gid != getgid())) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'cred->gid != getgid()'
#443: FILE: drivers/net/mlx5/mlx5_socket.c:186:
+	if ((cred == NULL) || (cred->uid != getuid()) ||
+	    (cred->gid != getgid())) {

WARNING:USE_NEGATIVE_ERRNO: return of an errno should typically be negative (ie: return -EINVAL)
#581: FILE: drivers/net/mlx5/mlx5_txq.c:204:
+		return EINVAL;

total: 0 errors, 1 warnings, 5 checks, 566 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-06 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20171006154552.161159-3-xuemingl@mellanox.com>
2017-10-06 15:47 ` [dpdk-test-report] |WARNING| pw29821 [PATCH v5 2/5] net/mlx5: install a socket to exchange a file descriptor checkpatch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).