From e1978f991a5a4541f1757f6b96cf1a5e5424a651 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 12 Nov 2019 18:30:46 -0800 Subject: [PATCH] lib: Fix scsi_maintenancein_datain_getfullsize() Coverity reported dead code. Signed-off-by: Bart Van Assche --- lib/scsi-lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scsi-lowlevel.c b/lib/scsi-lowlevel.c index fbe7d71..559a2b1 100644 --- a/lib/scsi-lowlevel.c +++ b/lib/scsi-lowlevel.c @@ -1082,7 +1082,7 @@ scsi_maintenancein_datain_getfullsize(struct scsi_task *task) case SCSI_REPORT_SUPPORTING_OPCODE: case SCSI_REPORT_SUPPORTING_SERVICEACTION: return 4 + - (task_get_uint8(task, 1) & 0x80) ? 12 : 0 + + ((task_get_uint8(task, 1) & 0x80) ? 12 : 0) + task_get_uint16(task, 2); } return -1;