[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1536215590-400-1-git-send-email-dingxiang@cmss.chinamobile.com>
Date: Thu, 6 Sep 2018 14:33:10 +0800
From: Ding Xiang <dingxiang@...s.chinamobile.com>
To: boris.ostrovsky@...cle.com, jgross@...e.com,
xen-devel@...ts.xenproject.org, linux-kernel@...r.kernel.org
Subject: [PATCH] xen: remove redundant put_device
device_unregister will put device, do not need to do it one more time
Signed-off-by: Ding Xiang <dingxiang@...s.chinamobile.com>
---
drivers/xen/xenbus/xenbus_probe.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c
index 5b47188..cfaa878 100644
--- a/drivers/xen/xenbus/xenbus_probe.c
+++ b/drivers/xen/xenbus/xenbus_probe.c
@@ -369,7 +369,6 @@ static void xenbus_cleanup_devices(const char *path, struct bus_type *bus)
bus_for_each_dev(bus, NULL, &info, cleanup_dev);
if (info.dev) {
device_unregister(&info.dev->dev);
- put_device(&info.dev->dev);
}
} while (info.dev);
}
--
1.9.1
Powered by blists - more mailing lists