git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fff905f
)
PCI: Simplify pci_find_(ext_)capability() return value checks
author
Wei Yang
<weiyang@linux.vnet.ibm.com>
Tue, 30 Jun 2015 01:16:44 +0000
(09:16 +0800)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 15 Jul 2015 04:35:36 +0000
(23:35 -0500)
The return value of the pci_find_(ext_)capability() is either zero or the
position of a capability. It is never negative.
This patch consolidates the form of check from (pos <= 0) to (!pos).
Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
patch
|
blob
|
history
diff --cc
drivers/pci/pci.c
Simple merge