Home
last modified time | relevance | path

Searched hist:"9222097 f0d2f88db602c0340d19d90a1c72b5fec" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/pci/
H A Dpci-driver.cdiff 9222097f0d2f88db602c0340d19d90a1c72b5fec Thu Sep 10 05:40:31 CDT 2015 Zhen Lei <thunder.leizhen@huawei.com> PCI: Remove unnecessary "if" statement

In store_remove_id(), set the default return value to -ENODEV, and
overwrite it with the input buffer size if we find a matching list entry.
Then we don't need to test whether to return an error or the count.

No functional change.

[bhelgaas: changelog]
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>