- bidi-support-sr-sd-remove-dead-code.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     bidi support: sr/sd: Remove dead code
has been removed from the -mm tree.  Its filename was
     bidi-support-sr-sd-remove-dead-code.patch

This patch was dropped because changes in git-scsi-misc destroyed it

------------------------------------------------------
Subject: bidi support: sr/sd: Remove dead code
From: Boaz Harrosh <bharrosh@xxxxxxxxxxx>

if (rq_data_dir() == WRITE) else if() else chain had an extra "else" since the
if() is on a value of 1 bit.

Also with a bidi request, rq_data_dir() == WRITE and blk_bidi_rq() == true.

Signed-off-by: Boaz Harrosh <bharrosh@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/scsi/sd.c |    5 +----
 drivers/scsi/sr.c |    5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)

diff -puN drivers/scsi/sd.c~bidi-support-sr-sd-remove-dead-code drivers/scsi/sd.c
--- a/drivers/scsi/sd.c~bidi-support-sr-sd-remove-dead-code
+++ a/drivers/scsi/sd.c
@@ -445,12 +445,9 @@ static int sd_prep_fn(struct request_que
 		}
 		SCpnt->cmnd[0] = WRITE_6;
 		SCpnt->sc_data_direction = DMA_TO_DEVICE;
-	} else if (rq_data_dir(rq) == READ) {
+	} else {
 		SCpnt->cmnd[0] = READ_6;
 		SCpnt->sc_data_direction = DMA_FROM_DEVICE;
-	} else {
-		scmd_printk(KERN_ERR, SCpnt, "Unknown command %x\n", rq->cmd_flags);
-		goto out;
 	}
 
 	SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt,
diff -puN drivers/scsi/sr.c~bidi-support-sr-sd-remove-dead-code drivers/scsi/sr.c
--- a/drivers/scsi/sr.c~bidi-support-sr-sd-remove-dead-code
+++ a/drivers/scsi/sr.c
@@ -365,12 +365,9 @@ static int sr_prep_fn(struct request_que
 		SCpnt->cmnd[0] = WRITE_10;
 		SCpnt->sc_data_direction = DMA_TO_DEVICE;
  	 	cd->cdi.media_written = 1;
-	} else if (rq_data_dir(rq) == READ) {
+	} else {
 		SCpnt->cmnd[0] = READ_10;
 		SCpnt->sc_data_direction = DMA_FROM_DEVICE;
-	} else {
-		blk_dump_rq_flags(rq, "Unknown sr command");
-		goto out;
 	}
 
 	{
_

Patches currently in -mm which might be from bharrosh@xxxxxxxxxxx are

git-scsi-misc.patch
scsi-gdth-kill-unneeded-irq-argument.patch
bidi-support-sr-sd-remove-dead-code.patch
bidi-support-tgt-use-scsi_init_io-instead-of-scsi_alloc_sgtable.patch
bidi-support-scsi_data_buffer.patch
scsi-pending-arm-convert-to-accessors.patch
scsi-bidi-support.patch

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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux