All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1393440] [NEW] pcie.c:148: possible error in OR expression ?
@ 2014-11-17 14:53 dcb
  2016-06-23  8:38 ` [Qemu-devel] [Bug 1393440] " T. Huth
  0 siblings, 1 reply; 2+ messages in thread
From: dcb @ 2014-11-17 14:53 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

[qemu/hw/pci/pcie.c:148] -> [qemu/hw/pci/pcie.c:148]: (style) Same
expression on both sides of '|'.

    pci_long_test_and_set_mask(dev->w1cmask + pos + PCI_EXP_DEVSTA,
                               PCI_EXP_DEVSTA_CED | PCI_EXP_DEVSTA_NFED |
                               PCI_EXP_DEVSTA_URD | PCI_EXP_DEVSTA_URD);

I am guessing that something like

    pci_long_test_and_set_mask(dev->w1cmask + pos + PCI_EXP_DEVSTA,
                               PCI_EXP_DEVSTA_CED | PCI_EXP_DEVSTA_NFED |
                               PCI_EXP_DEVSTA_FED | PCI_EXP_DEVSTA_URD);

was intended.

I used static analyser cppcheck to find this bug.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1393440

Title:
  pcie.c:148: possible error in OR expression ?

Status in QEMU:
  New

Bug description:
  [qemu/hw/pci/pcie.c:148] -> [qemu/hw/pci/pcie.c:148]: (style) Same
  expression on both sides of '|'.

      pci_long_test_and_set_mask(dev->w1cmask + pos + PCI_EXP_DEVSTA,
                                 PCI_EXP_DEVSTA_CED | PCI_EXP_DEVSTA_NFED |
                                 PCI_EXP_DEVSTA_URD | PCI_EXP_DEVSTA_URD);

  I am guessing that something like

      pci_long_test_and_set_mask(dev->w1cmask + pos + PCI_EXP_DEVSTA,
                                 PCI_EXP_DEVSTA_CED | PCI_EXP_DEVSTA_NFED |
                                 PCI_EXP_DEVSTA_FED | PCI_EXP_DEVSTA_URD);

  was intended.

  I used static analyser cppcheck to find this bug.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1393440/+subscriptions

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Qemu-devel] [Bug 1393440] Re: pcie.c:148: possible error in OR expression ?
  2014-11-17 14:53 [Qemu-devel] [Bug 1393440] [NEW] pcie.c:148: possible error in OR expression ? dcb
@ 2016-06-23  8:38 ` T. Huth
  0 siblings, 0 replies; 2+ messages in thread
From: T. Huth @ 2016-06-23  8:38 UTC (permalink / raw)
  To: qemu-devel

Fixed here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=8e815eeefe205155f5

** Changed in: qemu
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1393440

Title:
  pcie.c:148: possible error in OR expression ?

Status in QEMU:
  Fix Released

Bug description:
  [qemu/hw/pci/pcie.c:148] -> [qemu/hw/pci/pcie.c:148]: (style) Same
  expression on both sides of '|'.

      pci_long_test_and_set_mask(dev->w1cmask + pos + PCI_EXP_DEVSTA,
                                 PCI_EXP_DEVSTA_CED | PCI_EXP_DEVSTA_NFED |
                                 PCI_EXP_DEVSTA_URD | PCI_EXP_DEVSTA_URD);

  I am guessing that something like

      pci_long_test_and_set_mask(dev->w1cmask + pos + PCI_EXP_DEVSTA,
                                 PCI_EXP_DEVSTA_CED | PCI_EXP_DEVSTA_NFED |
                                 PCI_EXP_DEVSTA_FED | PCI_EXP_DEVSTA_URD);

  was intended.

  I used static analyser cppcheck to find this bug.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1393440/+subscriptions

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-23  8:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-17 14:53 [Qemu-devel] [Bug 1393440] [NEW] pcie.c:148: possible error in OR expression ? dcb
2016-06-23  8:38 ` [Qemu-devel] [Bug 1393440] " T. Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.