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

Commit 97828516 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "md: Remove unnecessary check"

parents a0fa5e60 26004207
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -912,13 +912,6 @@ static int req_crypt_map(struct dm_target *ti, struct request *clone,
	int error = DM_REQ_CRYPT_ERROR, copy_bio_sector_to_req = 0;
	struct bio *bio_src = NULL;

	if ((rq_data_dir(clone) != READ) &&
			 (rq_data_dir(clone) != WRITE)) {
		error = DM_REQ_CRYPT_ERROR;
		DMERR("%s Unknown request\n", __func__);
		goto submit_request;
	}

	req_io = mempool_alloc(req_io_pool, GFP_NOWAIT);
	if (!req_io) {
		DMERR("%s req_io allocation failed\n", __func__);