Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b07da9fb authored by Asias He's avatar Asias He Committed by Nicholas Bellinger
Browse files

target/pscsi: Drop unnecessary NULL assignment to bio->bi_next

parent 63b91d5a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -952,7 +952,6 @@ pscsi_map_sg(struct se_cmd *cmd, struct scatterlist *sgl, u32 sgl_nents,
	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 @@ pscsi_execute_cmd(struct se_cmd *cmd)
	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;