dm: pci: Avoid setting a PCI region that has 0 size
authorBin Meng <bmeng.cn@gmail.com>
Tue, 27 Mar 2018 07:46:06 +0000 (00:46 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 30 Mar 2018 08:05:08 +0000 (16:05 +0800)
commitee1109bb45be4aaf057a44a70c9bdf2d7ff5bbc7
treee4b4be886e2eea7a4e9f8daed18aea3c37f05103
parent1eaf7800b6b99b48e73eab56202cf1c7a0e19ac9
dm: pci: Avoid setting a PCI region that has 0 size

It makes no sense to set a PCI region that has 0 size.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c