From: Wei Yang Date: Tue, 30 Jun 2015 01:16:44 +0000 (+0800) Subject: PCI: Simplify pci_find_(ext_)capability() return value checks X-Git-Tag: omap-for-v4.3/fixes-merge-window~31^2~4^3~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a1a9b49427f13b6e12366eb8f06b8094ab61447;p=pandora-kernel.git 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 Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed