target/pscsi: Drop unnecessary NULL assignment to bio->bi_next
authorAsias He <asias@redhat.com>
Wed, 27 Feb 2013 05:29:28 +0000 (13:29 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 28 Feb 2013 03:15:58 +0000 (19:15 -0800)
Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pscsi.c

index 37575a1f038bd2287582ff26f4d063ec2c88e695..e005f9f4e4a6880bc8ba127d5e5a877880720f55 100644 (file)
@@ -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;