FEMU
FEMU copied to clipboard
Redundant else if and condition check in `nvme_process_sq_io`
- The 1 && in the if condition is unnecessary
- The else if (status == NVME_SUCCESS) block will never be reached.
https://github.com/MoatLab/FEMU/blob/1c2d358c1c6bc12ea38c17fb834a4470a53722e5/hw/femu/nvme-io.c#L76-L85
Yes, you're right. The code was there for debugging purposes, long time ago.