summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1393440
diff options
context:
space:
mode:
Diffstat (limited to 'results/scraper/launchpad-without-comments/1393440')
-rw-r--r--results/scraper/launchpad-without-comments/139344017
1 files changed, 17 insertions, 0 deletions
diff --git a/results/scraper/launchpad-without-comments/1393440 b/results/scraper/launchpad-without-comments/1393440
new file mode 100644
index 000000000..a6ce4c80b
--- /dev/null
+++ b/results/scraper/launchpad-without-comments/1393440
@@ -0,0 +1,17 @@
+pcie.c:148: possible error in OR expression ?
+
+[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.
\ No newline at end of file