[PATCH] namedev: move some matches out of the parent loop

This commit is contained in:
kay.sievers@vrfy.org 2005-02-11 18:33:40 +01:00 committed by Greg KH
parent 82b1698314
commit 03a9875bc3

View File

@ -582,7 +582,6 @@ static int match_place(struct config_device *dev, struct sysfs_class_device *cla
static int match_rule(struct udevice *udev, struct config_device *dev,
struct sysfs_class_device *class_dev, struct sysfs_device *sysfs_device)
{
while (1) {
/* check for matching kernel name */
if (dev->kernel[0] != '\0') {
dbg("check for " FIELD_KERNEL " dev->kernel='%s' class_dev->name='%s'",
@ -605,6 +604,7 @@ static int match_rule(struct udevice *udev, struct config_device *dev,
dbg(FIELD_SUBSYSTEM " matches");
}
while (1) {
/* check for matching driver */
if (dev->driver[0] != '\0') {
dbg("check for " FIELD_DRIVER " dev->driver='%s' sysfs_device->driver_name='%s'",