summaryrefslogtreecommitdiff
path: root/drivers/target
diff options
context:
space:
mode:
authorAsias He <asias@redhat.com>2013-02-27 09:29:28 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-02-28 07:15:58 +0400
commitb07da9fb527e547e2c6198f5594f523bcc11433c (patch)
treef36b9bfe591092b1601eca8346449f0a7acfa09b /drivers/target
parent63b91d5a492ae1cdc1ba0a0a45024718f6d1437f (diff)
downloadlinux-b07da9fb527e547e2c6198f5594f523bcc11433c.tar.xz
target/pscsi: Drop unnecessary NULL assignment to bio->bi_next
Signed-off-by: Asias He <asias@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_pscsi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c
index 37575a1f038b..e005f9f4e4a6 100644
--- a/drivers/target/target_core_pscsi.c
+++ b/drivers/target/target_core_pscsi.c
@@ -952,7 +952,6 @@ fail:
while (*hbio) {
bio = *hbio;
*hbio = (*hbio)->bi_next;
- bio->bi_next = NULL;
bio_endio(bio, 0); /* XXX: should be error */
}
return TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
@@ -1092,7 +1091,6 @@ fail_free_bio:
while (hbio) {
struct bio *bio = hbio;
hbio = hbio->bi_next;
- bio->bi_next = NULL;
bio_endio(bio, 0); /* XXX: should be error */
}
ret = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;