target: tcm_loop: Improve a size determination in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 10 Dec 2017 20:23:43 +0000 (21:23 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 12 Jan 2018 23:07:23 +0000 (15:07 -0800)
commita572dba9e0a72a51d3a624cbb511c39a702c9cf3
tree9f22908e9a8fb7d6ad69c70a423b165cc27a2a8d
parentcd3fb32a72c17ff45fd671b12e8b5f018df527b4
target: tcm_loop: Improve a size determination in two 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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c