]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62a65a29dc38e4b2c76da601f2d82866ef81cd22
tree946223b4bb888b5f2396c65b2ce2a733d97b9e47
parenta6168c2929573613bf5c1f2f83932597df8675b9
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