瀏覽代碼

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>
Asias He 12 年之前
父節點
當前提交
b07da9fb52
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/target/target_core_pscsi.c

+ 0 - 2
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;