Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp142993imm; Wed, 5 Sep 2018 23:18:02 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYj20YF2Ly5pOIyM2ckuzz3eSOPDqH8B8gQfiF7UAzU8+l1pN+yl1K6DZptOwo5+i1a8xI2 X-Received: by 2002:a63:ff1f:: with SMTP id k31-v6mr1252759pgi.20.1536214682665; Wed, 05 Sep 2018 23:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536214682; cv=none; d=google.com; s=arc-20160816; b=QV+O1lCt0wX51r4I/txp7teWL7rk+tH7w+g0zdBvsBZgLrCmk6GPLL9//txk1BQanA Ysb1Cf5BpoZf8uQTevYnZ4ddW2/Q5tdxGLGWLeAJ9Nif3usPZkHkNbqn4VO9Edlw9302 yv33cafvX1npc+hCEkCvr3SxgRTfk4xwExgZ3xH7TIAe6bOX83gEWsny9qvi7ywB7x4R pROqFK0mjqQM8oRI+pPQy2h9MZ0S1Ko60VFSjewG9Fz+9nUkv10OwOFSHrcqRJYEhnf7 KoyJNFPBMBRb7F1BJDruhIxwoNUF22TXHkI27xPc6VVIBFYvGLj4ekVdAhy5prltyCc4 rbyQ== 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=l7+9oWp1Xyxa5+XQjkFWPTtGKNhmA+U1V0dxWXjHpSk=; b=mrl1q4VqivBFi6srxg23AxItvPgNrnEfJOMypVSO3Gze3fn75r+r0twiVdMYibb0lt qAqqdta2BA2DkjHNKZmjsaO9UUEhO248vooPeFxbeohh/6+EYII6B6oFbHpA9u6gveXb ICeoxrY7slA+pOZTJx8AH94LCT6+5r8BPJ49Q+CLcBkbkZkG7psTOuN/wEh/oc+xx7GV JL0rYK5JTMjFASCOB1o6snPpmW/Zs4+beQoikZzKMhvEZYvooxAR6hu2Ye/ejyBdsYlM tIi54tLUgOpVGP87+JJh67J0lqaoWQETWyco8wzMb+FpXtnll6cvGBE5PuHZBdzsCZCY 4RAQ== 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 z66-v6si4444418pfl.209.2018.09.05.23.17.45; Wed, 05 Sep 2018 23:18:02 -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 S1726399AbeIFKu0 (ORCPT + 99 others); Thu, 6 Sep 2018 06:50:26 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:36711 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbeIFKuZ (ORCPT ); Thu, 6 Sep 2018 06:50:25 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.7]) by rmmx-syy-dmz-app11-12011 (RichMail) with SMTP id 2eeb5b90c63f7db-fe8be; Thu, 06 Sep 2018 14:16:31 +0800 (CST) X-RM-TRANSID: 2eeb5b90c63f7db-fe8be X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.105.0.243]) by rmsmtp-syy-appsvr04-12004 (RichMail) with SMTP id 2ee45b90c63d9bc-d617f; Thu, 06 Sep 2018 14:16:30 +0800 (CST) X-RM-TRANSID: 2ee45b90c63d9bc-d617f From: Ding Xiang To: schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: zfcp: remove redundant put_device Date: Thu, 6 Sep 2018 14:16:27 +0800 Message-Id: <1536214587-32500-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/s390/scsi/zfcp_unit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/s390/scsi/zfcp_unit.c b/drivers/s390/scsi/zfcp_unit.c index 1bf0a09..6b50084 100644 --- a/drivers/s390/scsi/zfcp_unit.c +++ b/drivers/s390/scsi/zfcp_unit.c @@ -249,8 +249,6 @@ int zfcp_unit_remove(struct zfcp_port *port, u64 fcp_lun) scsi_device_put(sdev); } - put_device(&unit->dev); - device_unregister(&unit->dev); return 0; -- 1.9.1