emb6_sock_udp: unify cppcheck-suppress reason with others

This commit is contained in:
Martine Lenders 2018-11-06 10:02:13 +01:00
parent 9e3ce7b5a7
commit a077dc5782

View File

@ -236,10 +236,10 @@ int sock_udp_send(sock_udp_t *sock, const void *data, size_t len,
return -ENOTCONN; return -ENOTCONN;
} }
/* cppcheck-suppress nullPointerRedundantCheck /* cppcheck-suppress nullPointerRedundantCheck
* remote == NULL implies that sock != NULL (see assert at start of * (reason: remote == NULL implies that sock != NULL (see assert at start of
* function) * that's why it is okay in the if-statement above to check * function) * that's why it is okay in the if-statement above to check
* sock->... without checking (sock != NULL) first => this check afterwards * sock->... without checking (sock != NULL) first => this check afterwards
* isn't redundant */ * isn't redundant) */
if (sock == NULL) { if (sock == NULL) {
int res; int res;
if ((res = _reg(&tmp, NULL, NULL, NULL, NULL)) < 0) { if ((res = _reg(&tmp, NULL, NULL, NULL, NULL)) < 0) {