]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/netlink: clean up message validity array initializer
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Sep 2017 17:17:20 +0000 (10:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Sep 2017 17:17:20 +0000 (10:17 -0700)
commit475e42726982cb76f17f220f6576e237500a4d1b
tree76a42209cd19527a917ee1d64ebcaf9a5410ad3b
parent93dc9cd4d1400a464afb8deeb550bd8296701e99
RDMA/netlink: clean up message validity array initializer

The fix in the parent made me look at that function, and react to how
illogical and illegible the array initializer was.

Use named array indexes to make it clearer what is going on, and make
the initializer not depend silently on the exact index numbers.

[ The initializer now also shows an odd inconsistency in the naming:
  note the IWCM vs IWPM..   - Linus ]

Cc: Leon Romanovsky <leonro@mellanox.com>
Cc: Doug Ledford <dledford@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/infiniband/core/netlink.c