mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
nvme: remove constant argument to tracepoint
The last argument to -pci_nvme_err_startfail_virt_state is always "OFFLINE" due to the enclosing "if" condition requiring !sctrl->scs. Reported by Coverity. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
0abe33c13a
commit
3488fc3262
2 changed files with 2 additions and 4 deletions
|
@ -7158,9 +7158,7 @@ static int nvme_start_ctrl(NvmeCtrl *n)
|
|||
|
||||
if (pci_is_vf(PCI_DEVICE(n)) && !sctrl->scs) {
|
||||
trace_pci_nvme_err_startfail_virt_state(le16_to_cpu(sctrl->nvi),
|
||||
le16_to_cpu(sctrl->nvq),
|
||||
sctrl->scs ? "ONLINE" :
|
||||
"OFFLINE");
|
||||
le16_to_cpu(sctrl->nvq));
|
||||
return -1;
|
||||
}
|
||||
if (unlikely(n->cq[0])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue