IB/hfi1: Coding style improvement (make sizeof use safer)
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 10 Feb 2017 20:45:38 +0000 (21:45 +0100)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Apr 2017 20:25:04 +0000 (16:25 -0400)
commitdb6f0289f59950548ae86982ca9a84423a58401c
tree946223b4bb888b5f2396c65b2ce2a733d97b9e47
parente036c2006c77c750d0f553e1b484b029e231d7ee
IB/hfi1: Coding style improvement (make sizeof use safer)

Replace the specification of a data structure by a reference to
the desired member as the parameter for the operator "sizeof" to make
the corresponding size determination a bit safer according to
the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c