diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-07-14 23:03:27 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-15 17:47:11 +0300 |
commit | 10321aa17ae9ad9b1335d61aeabb6f63d38cc28e (patch) | |
tree | 26db85a9bff8c0d3bbd2b6677cd152d407c6a825 /drivers/dma-buf | |
parent | 9f4aa52387c68049403b59939df5c0dd8e3872cc (diff) | |
download | linux-10321aa17ae9ad9b1335d61aeabb6f63d38cc28e.tar.xz |
s390/dasd: Use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version
in order to avoid any potential type mistakes. Also, remove unnecessary
variable _datasize_.
This code was detected with the help of Coccinelle and, audited and
fixed manually.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/dma-buf')
0 files changed, 0 insertions, 0 deletions