]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: report the scsi TUR state correctly
authorShan Hai <shan.hai@oracle.com>
Tue, 17 Oct 2017 09:50:03 +0000 (17:50 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 23 Oct 2017 04:33:15 +0000 (21:33 -0700)
commit5ea603cbd4a676b1148a7b1a5e4c68e9053d3547
treee1b4c0474d1605376bc1be4e1530cce9b36401cc
parentf7915c3be01697eda6709d58a641de26b0c4cfea
nvme: report the scsi TUR state correctly

Orabug: 26993705

The current nvme driver reports the scsi TEST UNIT READY state
upside down because of the inconsistency between the condition
checking and the return value, fix it by making it consistent.

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/scsi.c