Skip to content

Commit

Permalink
ibdiags: Fix extra swap on error print
Browse files Browse the repository at this point in the history
Sparse says query_type is host endian, and it is right.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
jgunthorpe committed May 7, 2019
1 parent c993dec commit eddc3e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/saquery.c
Original file line number Diff line number Diff line change
Expand Up @@ -1901,8 +1901,7 @@ int main(int argc, char **argv)
default:
if ((!q && !(q = find_query_by_type(query_type)))
|| !q->handler) {
fprintf(stderr, "Unknown query type %d\n",
ntohs(query_type));
fprintf(stderr, "Unknown query type %d\n", query_type);
status = EINVAL;
} else
status = q->handler(q, h, &params, argc, argv);
Expand Down

0 comments on commit eddc3e7

Please sign in to comment.