Merge branch 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / drivers / target / target_core_pscsi.c
index 08e9084ee615bed5a65e5fb66d0a6bc2d50efd5b..de18790eb21c0d79cc36e7479a2876b13ca195dc 100644 (file)
@@ -852,7 +852,7 @@ static ssize_t pscsi_show_configfs_dev_params(struct se_device *dev, char *b)
        return bl;
 }
 
-static void pscsi_bi_endio(struct bio *bio, int error)
+static void pscsi_bi_endio(struct bio *bio)
 {
        bio_put(bio);
 }
@@ -973,7 +973,7 @@ fail:
        while (*hbio) {
                bio = *hbio;
                *hbio = (*hbio)->bi_next;
-               bio_endio(bio, 0);      /* XXX: should be error */
+               bio_endio(bio);
        }
        return TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
 }
@@ -1061,7 +1061,7 @@ fail_free_bio:
        while (hbio) {
                struct bio *bio = hbio;
                hbio = hbio->bi_next;
-               bio_endio(bio, 0);      /* XXX: should be error */
+               bio_endio(bio);
        }
        ret = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
 fail: