The SCSI core never sets sc_data_direction to DMA_BIDIRECTIONAL.
Hence remove the code that tests for this value.

Signed-off-by: Bart Van Assche <bart.vanass...@sandisk.com>
Cc: Dario Ballabio <ballabio_da...@emc.com>
---
 drivers/scsi/eata.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c
index 227dd2c..c1fa5ba 100644
--- a/drivers/scsi/eata.c
+++ b/drivers/scsi/eata.c
@@ -1726,9 +1726,8 @@ static void scsi_to_dev_dir(unsigned int i, struct 
hostdata *ha)
                return;
        }
 
-       if (SCpnt->sc_data_direction != DMA_BIDIRECTIONAL)
-               panic("%s: qcomm, invalid SCpnt->sc_data_direction.\n",
-                               ha->board_name);
+       panic("%s: qcomm, invalid SCpnt->sc_data_direction %d.\n",
+             ha->board_name, SCpnt->sc_data_direction);
 
        for (k = 0; k < ARRAY_SIZE(data_out_cmds); k++)
                if (SCpnt->cmnd[0] == data_out_cmds[k]) {
-- 
2.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to