X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fpci_endpoint%2Fpci_ep-uclass.c;h=9f53a9a9b9796dbc0762f9600e4f65f8a616503c;hb=1099b2abef35c3c887f6afac1a8ef18c7924d5d2;hp=2f9c70398d76007e0593173413c0bdb82c3e51db;hpb=5acce685c9227b3d4b48f6fab6a33f6d74ca9c14;p=oweals%2Fu-boot.git diff --git a/drivers/pci_endpoint/pci_ep-uclass.c b/drivers/pci_endpoint/pci_ep-uclass.c index 2f9c70398d..9f53a9a9b9 100644 --- a/drivers/pci_endpoint/pci_ep-uclass.c +++ b/drivers/pci_endpoint/pci_ep-uclass.c @@ -43,7 +43,7 @@ int pci_ep_set_bar(struct udevice *dev, uint func_no, struct pci_bar *ep_bar) int flags = ep_bar->flags; /* Some basic bar validity checks */ - if (ep_bar->barno > BAR_5 || ep_bar < BAR_0) + if (ep_bar->barno > BAR_5 || ep_bar->barno < BAR_0) return -EINVAL; if ((ep_bar->barno == BAR_5 &&