diff options
author | 2015-06-30 09:16:44 +0800 | |
---|---|---|
committer | 2015-07-14 23:35:36 -0500 | |
commit | 0a1a9b49427f13b6e12366eb8f06b8094ab61447 (patch) | |
tree | a423ceb7d5a017311094d2b3c4e8bc3788804829 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | PCI: Move PCI_FIND_CAP_TTL to pci.h and use it in quirks (diff) | |
download | wireguard-linux-0a1a9b49427f13b6e12366eb8f06b8094ab61447.tar.xz wireguard-linux-0a1a9b49427f13b6e12366eb8f06b8094ab61447.zip |
PCI: Simplify pci_find_(ext_)capability() return value checks
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions