]> git.baikalelectronics.ru Git - kernel.git/commit
vhost/scsi: Improve a size determination in four functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 20 May 2017 11:48:44 +0000 (13:48 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 30 Jan 2018 23:47:33 +0000 (01:47 +0200)
commit2e1ea251c5e8948cf6cc9f9ee9f7f42d4b49386d
tree43b2b358a90a7ede715b440031389b289e806497
parent600c057d57a1ec748b6875a3e7c7a7bc6047abf9
vhost/scsi: Improve a size determination in four functions

Replace the specification of four 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.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/scsi.c