]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci_ep: Fix Coverity warning
authorRamon Fried <rfried.dev@gmail.com>
Wed, 31 Jul 2019 08:04:26 +0000 (11:04 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 7 Aug 2019 19:31:04 +0000 (15:31 -0400)
commit6948f1023f3aa382bb023f115929ab3106edb7ee
tree8ce590165e09c5f87488b7b2bf31eade84a76f23
parent2d88b5a38eda720b028818c039e08b8d6dea6cc6
pci_ep: Fix Coverity warning

Fix the following Coverity warning:
CID 244086:  Incorrect expression  (BAD_COMPARE)
Comparing pointer "ep_bar" against NULL using anything besides == or
is likely to be incorrect.

Fixes: 914026d25848 ("drivers: pci_ep: Introduce UCLASS_PCI_EP uclass")
Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
drivers/pci_endpoint/pci_ep-uclass.c