diff options
author | Damien Le Moal <[email protected]> | 2021-08-16 10:44:48 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-08-18 07:19:39 -0600 |
commit | 56b4f06c55add95fe508a1746d9173bade6388bf (patch) | |
tree | 5cdf7f2a32e9b1cc33972c68479cc60360af6c7b /lib/test_fortify/write_overflow-memcpy.c | |
parent | 355a8031dc174450ccad2a61c513ad7222d87a97 (diff) |
libata: simplify ata_scsi_rbuf_fill()
Sparse complains about context imbalance in ata_scsi_rbuf_get() and
ata_scsi_rbuf_put() due to these functions respectively only taking
and releasing the ata_scsi_rbuf_lock spinlock. Since these functions are
only called from ata_scsi_rbuf_fill() with ata_scsi_rbuf_get() being
called with a copy_in argument always false, the code can be simplified
and ata_scsi_rbuf_{get|put} removed. This change both simplifies the
code and fixes the sparse warning.
Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions