diff options
author | Arun Kumar <arun.kka@samsung.com> | 2024-10-23 03:51:05 +0530 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2024-11-04 19:09:45 +0100 |
commit | 8f472a0e7a3c86a890e12e883a69abc65945419e (patch) | |
tree | 194f0bf6174a5982e2ee643902df18960e846165 /hw/nvme | |
parent | dbaa2936b3a62422ae084cbee188bff9a2b544d7 (diff) | |
download | qemu-8f472a0e7a3c86a890e12e883a69abc65945419e.zip qemu-8f472a0e7a3c86a890e12e883a69abc65945419e.tar.gz qemu-8f472a0e7a3c86a890e12e883a69abc65945419e.tar.bz2 |
hw/nvme: remove dead code
Remove dead code which always returns success, since PRCHK will have a
value of zero.
Signed-off-by: Arun Kumar <arun.kka@samsung.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Link: https://lore.kernel.org/r/20241022222105.3609223-1-arun.kka@samsung.com
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/nvme')
-rw-r--r-- | hw/nvme/dif.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/nvme/dif.c b/hw/nvme/dif.c index 01b19c3..2805128 100644 --- a/hw/nvme/dif.c +++ b/hw/nvme/dif.c @@ -575,11 +575,6 @@ uint16_t nvme_dif_rw(NvmeCtrl *n, NvmeRequest *req) uint8_t *mbuf, *end; int16_t pil = ns->lbaf.ms - nvme_pi_tuple_size(ns); - status = nvme_check_prinfo(ns, prinfo, slba, reftag); - if (status) { - goto err; - } - flags = 0; ctx->mdata.bounce = g_malloc0(mlen); |