diff options
Diffstat (limited to 'commands/devinfo.c')
-rw-r--r-- | commands/devinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/devinfo.c b/commands/devinfo.c index 2e2e48e42c..32fd55ebd5 100644 --- a/commands/devinfo.c +++ b/commands/devinfo.c @@ -85,7 +85,7 @@ static int do_devinfo(int argc, char *argv[]) if (dev->info) dev->info(dev); - if (dev->parent) + if (dev->parent && (!dev->bus || dev->bus->dev != dev->parent)) printf("Parent: %s\n", dev_name(dev->parent)); first = true; |