]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Remove unnecessary "if" statement
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 10 Sep 2015 10:40:31 +0000 (18:40 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 18 Sep 2015 20:55:07 +0000 (15:55 -0500)
commite73abf04d1e91eb50744f4a2aeea54e497f8bf3f
tree90effab76b507f987e7a55fa11b8fe2aceafd8cd
parent935a478e4144e0a4f690471a4a1d8ad5718a721b
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>
drivers/pci/pci-driver.c