Skip to content

Commit

Permalink
hw/nvme: remove dead code
Browse files Browse the repository at this point in the history
Remove dead code which always returns success, since PRCHK will have a
value of zero.

Signed-off-by: Arun Kumar <[email protected]>
Reviewed-by: Klaus Jensen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Klaus Jensen <[email protected]>
  • Loading branch information
Arun Kumar authored and birkelund committed Nov 4, 2024
1 parent dbaa293 commit 8f472a0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions hw/nvme/dif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8f472a0

Please sign in to comment.