rapidio: improve a size determination in five functions
authorMarkus Elfring <[email protected]>
Tue, 6 Feb 2018 23:39:51 +0000 (15:39 -0800)
committerLinus Torvalds <[email protected]>
Wed, 7 Feb 2018 02:32:46 +0000 (18:32 -0800)
commitd1509c097f685472fb8c6b510ae8c8678499e53d
tree40f350ce5fb6b92a07be9998766f0ac04a3aaa31
parente1d66d042187f7f18a50fab83cbc9b21b183cc7c
rapidio: improve a size determination in five functions

Replace the specification of data structures by pointer dereferences as
the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style
convention.

This issue was detected by using the Coccinelle software.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Markus Elfring <[email protected]>
Acked-by: Alexandre Bounine <[email protected]>
Cc: Matt Porter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rapidio/rio.c