[Stgt-devel] [Patch 2/2] Removed unnecessary test.

Mark Harvey markh794
Sun Jun 17 23:23:41 CEST 2007


>From 69ea0949825629b1e7a844686fb104cb764549a3 Mon Sep 17 00:00:00 2001
From: Mark Harvey <markh794 at gmail.com>
Date: Mon, 18 Jun 2007 06:54:09 +1000
Subject: Removed unused test condition.

Removed test for SAM_STAT_GOOD as this is the only possible condition.

Signed-off-by: Mark Harvey <markh794 at gmail.com>
---
 usr/ibmvio/ibmvio.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/usr/ibmvio/ibmvio.c b/usr/ibmvio/ibmvio.c
index ab2c0f2..e4744a8 100644
--- a/usr/ibmvio/ibmvio.c
+++ b/usr/ibmvio/ibmvio.c
@@ -135,7 +135,6 @@ static int __ibmvio_inquiry(int host_no, struct scsi_cmd *cmd, uint8_t *data)
 
 static int ibmvio_inquiry(int host_no, struct scsi_cmd *cmd)
 {
-	int ret = SAM_STAT_CHECK_CONDITION;
 	uint8_t *data, *scb = cmd->scb;
 	unsigned char key = ILLEGAL_REQUEST, asc = 0x24;
 
@@ -153,13 +152,9 @@ static int ibmvio_inquiry(int host_no, struct scsi_cmd *cmd)
 		}
 		memset(data, 0, pagesize);
 		cmd->len = __ibmvio_inquiry(host_no, cmd, data);
-		ret = SAM_STAT_GOOD;
 	} else
 		return spc_inquiry(host_no, cmd);
 
-	if (ret != SAM_STAT_GOOD)
-		goto sense;
-
 	cmd->len = min_t(int, cmd->len, scb[4]);
 	cmd->uaddr = (unsigned long) data;
 
-- 
1.5.2.1







More information about the stgt mailing list