]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/spi/spi-mxs.c
spi: mxs: Assign message status after transfer finished
[~shefty/rdma-dev.git] / drivers / spi / spi-mxs.c
index edf1360ab09e5be8311b7338a28d75ce8bbb46a3..5a63bcd7a23d464bdbd26f231250a560e10ff9a5 100644 (file)
@@ -480,7 +480,7 @@ static int mxs_spi_transfer_one(struct spi_master *master,
                first = last = 0;
        }
 
-       m->status = 0;
+       m->status = status;
        spi_finalize_current_message(master);
 
        return status;