]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cam: Remove all the write-only variables
authorWarner Losh <imp@FreeBSD.org>
Wed, 24 Nov 2021 04:14:05 +0000 (21:14 -0700)
committerWarner Losh <imp@FreeBSD.org>
Mon, 6 Dec 2021 15:55:57 +0000 (08:55 -0700)
commit66cc270f8f0f40c979e0264057a61027f58285b1
tree2c443124740ac6a111e635a40d421996f3607cb7
parente680a66744859427c5ed2f610cbfbd23668295bb
cam: Remove all the write-only variables

Delete all the write only variables in CAM. At worst, the only behavior
change would be to prevent core dumps from chasing NULL pointers (though
I think in all these cases the pointers can't be NULL).

Sponsored by: Netflix

(cherry picked from commit 6637b7460066314f9b3ce0073ec6563e15ece608)
sys/cam/nvme/nvme_da.c
sys/cam/nvme/nvme_xpt.c
sys/cam/scsi/scsi_cd.c
sys/cam/scsi/scsi_ch.c
sys/cam/scsi/scsi_da.c
sys/cam/scsi/scsi_enc.c
sys/cam/scsi/scsi_enc_ses.c
sys/cam/scsi/scsi_pass.c