X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fremoteproc%2Frproc-uclass.c;h=200cf61bc948b71c9331fc2b07cf45c12f37046a;hb=2411e0fbd91bba94569cc2ae2192fb582c5bff8b;hp=a421e12e5d16f4d2fd97382a3a059fcd9c922507;hpb=a69fdc7787bfa2f27eed74c2ee58c28ce932d502;p=u-boot diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c index a421e12e5d..200cf61bc9 100644 --- a/drivers/remoteproc/rproc-uclass.c +++ b/drivers/remoteproc/rproc-uclass.c @@ -66,7 +66,7 @@ static int _rproc_name_is_unique(struct udevice *dev, const char *check_name = data; /* devices not yet populated with data - so skip them */ - if (!uc_pdata->name && check_name) + if (!uc_pdata->name || !check_name) return 0; /* Return 0 to search further if we dont match */