]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/mlx4: Fix incorrect order of formal and actual parameters
authorHåkon Bugge <haakon.bugge@oracle.com>
Fri, 28 Apr 2017 11:06:54 +0000 (13:06 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 8 Jun 2017 06:32:17 +0000 (23:32 -0700)
commit2aefa11d9b57c7f9e5b3e09e5da5389c1d6e770e
tree4f393c0c63f254bf6dc5c8493c5e11e216378a8d
parent4b00c6271a0c1a810bd8e4fb3e72959c941516e3
IB/mlx4: Fix incorrect order of formal and actual parameters

The last two actual parameters when calling id_map_find_by_sl_id()
from id_map_get() are swapped. However, the same formal parameters to
id_map_get() have them swapped as well, inverting the effect of the
first error.

This commit improves readability, but makes no functional change to
the code.

Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Wengang Wang <wen.gang.wang@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
(cherry picked from commit b03ee4ca0cec348c84dccf08aaec2454c4d236c2)

Orabug: 26187991

Reviewed-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
drivers/infiniband/hw/mlx4/cm.c