Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp155025imm; Wed, 5 Sep 2018 23:35:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYwv595JYHim1kV+AAlF/A9zx+RTm3BExnFI3AjSqIhCF1uPlAENWYrCpE5uik3JdRVAR99 X-Received: by 2002:a17:902:8e81:: with SMTP id bg1-v6mr1264652plb.129.1536215705002; Wed, 05 Sep 2018 23:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536215704; cv=none; d=google.com; s=arc-20160816; b=D9Sf65vuZGBWr1ZcLZVU2rI9YXb1+nidjdC0bt02bZ2m2iN+1Ho0seJg92+DCgOzfu VkHx8ZKBlIBtF3jHPFGIrWSVyywRwDavH8TPtQ+f6DcD3aKLIe4OrPeLpDC6d0sS6hJe nFzkyQ8Oq0ZQDjx7lezjBgSqPGrsFCls6NSVylryHmuVHiq01UmFK1Xh1Tr6m/2Pa2UM loExY9KEDkXcm4q8M9lxmBhIYLI+iV5dIl/yctCUwlVExXkQEngG3oet1Uhk+TK9gyez L3x0CZvaSgIKEJW+8MA1y2s7LNDXQEx48/U/1bKlWIMkNvezB987dBT6TInNdxuSCXv6 vWwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=DPr8n0FncNYGHS0TOTKVAN5JvFJuuVfV2m99Ti7qgow=; b=AO3A6+MyiHy8VUi5taYlN98RNfj1woRdcpIyaIAT8HsCn/+vd1+ANOJdsH5CYvCkCw QHbyYjT8HeO0oRFRi6e/CZkWKf2uDcHv0mq+4bXkgdYY0mu8pfF51Jlr9l1Ii+2ivM4t gO6GPzZIjl3daNpMHATA2fTLSJzlGHM/9DcvKSREnlGjKapMzFl8gpakBa6+bGuXE0/T H2ASsy88vXKvKxnmKS+PvXH9WY0IGrvG/GHcwjYlefEUiVshFeCbxGbh18tohjO8gQnD Zqrj1nf1BvnGo52Cg0x9tGYOOu6X5pDSsBXx1Ufje6Sgm9s98J963Z399Rthz3xNHsTX aVpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g26-v6si4472376pgb.349.2018.09.05.23.34.49; Wed, 05 Sep 2018 23:35:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727651AbeIFLHO (ORCPT + 99 others); Thu, 6 Sep 2018 07:07:14 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:37528 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbeIFLHO (ORCPT ); Thu, 6 Sep 2018 07:07:14 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.15]) by rmmx-syy-dmz-app05-12005 (RichMail) with SMTP id 2ee55b90ca2953f-ff298; Thu, 06 Sep 2018 14:33:14 +0800 (CST) X-RM-TRANSID: 2ee55b90ca2953f-ff298 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.105.0.243]) by rmsmtp-syy-appsvr08-12008 (RichMail) with SMTP id 2ee85b90ca29f33-d8aa4; Thu, 06 Sep 2018 14:33:14 +0800 (CST) X-RM-TRANSID: 2ee85b90ca29f33-d8aa4 From: Ding Xiang To: boris.ostrovsky@oracle.com, jgross@suse.com, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [PATCH] xen: remove redundant put_device Date: Thu, 6 Sep 2018 14:33:10 +0800 Message-Id: <1536215590-400-1-git-send-email-dingxiang@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org device_unregister will put device, do not need to do it one more time Signed-off-by: Ding Xiang --- 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