Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1288119imm; Wed, 18 Jul 2018 21:47:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNIhA7G5rMkstdv+UmBlxSQQHGl8VvtUBy0ep3574ymCmg2DO3R0opxp4ysZvFSvl6oGca X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr8003677pfd.181.1531975669256; Wed, 18 Jul 2018 21:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531975669; cv=none; d=google.com; s=arc-20160816; b=QjdevtYMYK3+SDV++CtmxEEakeVCpbSq3ySzhiyvGPaH/omdQWfft2n+A146+Z2PWO sQxn5O3k36prMUb1VimUNbK6sLW0qOc0PBzTctd8hJhqCCCkUEUZvXAAgQyAVBgcnik9 3kcTpS7duat5SJ4Kbkv1O0f7A2dHGOqFmbYrySWgiW5O/+GHXO1QmxO96irfuogoXJD9 k5qagPc6dWAJACF5pLrHu8f0a4hT/faB9Bl1WkoO8Voa3ApgVOSxTT3eN6CYCN66r5fO 8M/sqBY/zZk5JDDtKvA6XldP/4VTKfG5Jo4/ZR+Csk0hhCMzdXmcmVxITg92SW8oyKAj 6Row== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=MuC+f8Psafil1C5P1T457XTcUi4yTqGzDdFlf/leZUw=; b=vm0hmju0tvjv5rsCIVgXWbL/JLCvkbXnuZ0G0Eyosp/O1rr+RfkMLr7YF6yNaDmwH3 7nSKU4oaHcpBsurJ1vt8+or4H4SyvA9sSFA2z5s/7/Tb8SH7sEBLW+1EZLonu9iktBCl 4dPwB0WfbkwHGI3TrnBOnD30juzF7NV4Q7pGFFEmqCzWW3BV0DsigwFhSlsmY9oUTl/M dtbMFk16QQulQjTr0lcIMXFtb8StBgLeTnP1Uq6ZL7sz3JfnOJNNhPw1DIEir+ZQrjxi puD2Xfmwdw7s3bTkYEZ8MD7hVIilTRuXxGa9M1XOXHGlVJqwC5eYQJvNp8Bnvqwa7Gh+ 51DQ== 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 p11-v6si4550205pgh.274.2018.07.18.21.47.34; Wed, 18 Jul 2018 21:47:49 -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 S1728018AbeGSF2F (ORCPT + 99 others); Thu, 19 Jul 2018 01:28:05 -0400 Received: from gateway36.websitewelcome.com ([192.185.193.12]:49193 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727324AbeGSF2F (ORCPT ); Thu, 19 Jul 2018 01:28:05 -0400 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 99E7E400C5B21 for ; Wed, 18 Jul 2018 22:48:33 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id g0q5fpZZDRPojg0q6fNOm0; Wed, 18 Jul 2018 23:46:54 -0500 X-Authority-Reason: nr=8 Received: from [189.250.65.56] (port=45372 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fg0q5-003d8a-J1; Wed, 18 Jul 2018 23:46:53 -0500 Date: Wed, 18 Jul 2018 23:46:53 -0500 From: "Gustavo A. R. Silva" To: Martin Schwidefsky , Heiko Carstens Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] s390/tape: replace PTR_RET with PTR_ERR_OR_ZERO Message-ID: <20180719044653.GA24968@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.65.56 X-Source-L: No X-Exim-ID: 1fg0q5-003d8a-J1 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.65.56]:45372 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 15 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PTR_RET is deprecated, use PTR_ERR_OR_ZERO instead. Signed-off-by: Gustavo A. R. Silva --- drivers/s390/char/tape_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/char/tape_class.c b/drivers/s390/char/tape_class.c index e403edf..b58df0d 100644 --- a/drivers/s390/char/tape_class.c +++ b/drivers/s390/char/tape_class.c @@ -77,7 +77,7 @@ struct tape_class_device *register_tape_dev( tcd->class_device = device_create(tape_class, device, tcd->char_device->dev, NULL, "%s", tcd->device_name); - rc = PTR_RET(tcd->class_device); + rc = PTR_ERR_OR_ZERO(tcd->class_device); if (rc) goto fail_with_cdev; rc = sysfs_create_link( -- 2.7.4