Skip to content

Commit

Permalink
rdma: Assign instead of compare
Browse files Browse the repository at this point in the history
Fixed:

** CID 1414508 (#1 of 1): Assign instead of compare (PW.ASSIGN_WHERE_COMPARE_MEANT)
1. assign_where_compare_meant: use of "=" where "==" may have been intended

Signed-off-by: Amit Kumar amitkuma@redhat.com
  • Loading branch information
amitkuma committed Jul 30, 2017
1 parent 04717c8 commit 092e3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msg/async/rdma/RDMAConnectedSocketImpl.cc
Expand Up @@ -600,7 +600,7 @@ void RDMAConnectedSocketImpl::cleanup() {
void RDMAConnectedSocketImpl::notify()
{
int i = 1;
assert(sizeof(notify_fd) == write(notify_fd, &i, sizeof(i)));
assert(sizeof(i) == write(notify_fd, &i, sizeof(i)));
}

void RDMAConnectedSocketImpl::shutdown()
Expand Down

0 comments on commit 092e3f3

Please sign in to comment.