Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1285231imm; Wed, 18 Jul 2018 21:42:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfu6oRFOwJNyNL+8HemZwXQfsnu3xhKaLP3DBQ4RtYCcjEVjfMoYUzuGld5Pp8BdR8RsSZr X-Received: by 2002:a63:5b51:: with SMTP id l17-v6mr8227879pgm.165.1531975376739; Wed, 18 Jul 2018 21:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531975376; cv=none; d=google.com; s=arc-20160816; b=Xe0maLAX93Y4JO6soFeh0Uhn+DwlDb7fgQJyh1NDE63nvVvguBKqbLIiBiqx6bAAzm /pX4uu9vE7W+y9CLv79JPpJVFLhhEmTl9JEP+ejARRNTZWpGLExX5xB0GcRcvqLf84xt 8R2OFYp4X8FC39mGJKSzvw4R0/YYtqy5v1p2Ko8Cecc2yHaxf9SHUB6NNaLptxh0/NG9 LW0ok2sVktJseD5aa29Kn6AUFPVqTmFWULUbr85Jm4FvMTT6g8f81mnaLh2Fy3wAQwvw CYmIyLTIfDoZ6FblgRU3F7Sm4abKpqJfMk+45EH0RVY7mXUsHvJK3AnMtX3xEVKt/0cR I8SQ== 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=s+0MWMx7yVwrsu/skn6OWmeTY8qM6sPb5IPz1vrU17o=; b=IR/PWe4JCOD5KkFxqt3ufl2XZ2CeyubX+m5a1B3HlAkeUerERUq52LajVfLs0ZIgFF 2Gj9VpXEuBC9Bqojq3ov302utdejNw7dW0H+q3NrpBcFO1FqGXFn4j5CFEc4XpyxdR+m jzIeCrLujiDWHaZHhGOLzOZeUdqJmmNxDfBOaPBSdKWOrMfT04xLQrA5f00PQeQkoQDR LZxxJn1FCnpEvmKCRGgoVBWZ/gJXEpfdlm7LELIvWqwMqIgzSVNWxN4Aa+rMdoaAFYqM 9GiVeloZqlex/qeybJ3F4NPn3q77TP7I6rWA8dt4X4nZIQDOmGfbnnMWn8aSYd7egmt1 TpWw== 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 e186-v6si5010323pfc.176.2018.07.18.21.42.41; Wed, 18 Jul 2018 21:42:56 -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 S1727461AbeGSFXR (ORCPT + 99 others); Thu, 19 Jul 2018 01:23:17 -0400 Received: from gateway31.websitewelcome.com ([192.185.143.234]:42975 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727104AbeGSFXR (ORCPT ); Thu, 19 Jul 2018 01:23:17 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway31.websitewelcome.com (Postfix) with ESMTP id B6B67B7F3A for ; Wed, 18 Jul 2018 23:42:06 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id g0lSfYsO8bXuJg0lSfgVAy; Wed, 18 Jul 2018 23:42:06 -0500 X-Authority-Reason: nr=8 Received: from [189.250.65.56] (port=45286 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fg0lS-003aUu-6J; Wed, 18 Jul 2018 23:42:06 -0500 Date: Wed, 18 Jul 2018 23:42:05 -0500 From: "Gustavo A. R. Silva" To: Harald Freudenberger , Martin Schwidefsky , Heiko Carstens Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] s390/ap_bus: replace PTR_RET with PTR_ERR_OR_ZERO Message-ID: <20180719044205.GA24764@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: 1fg0lS-003aUu-6J X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.65.56]:45286 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 11 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/crypto/ap_bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index c0a6723..bf27fc4 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c @@ -474,7 +474,7 @@ static int ap_poll_thread_start(void) return 0; mutex_lock(&ap_poll_thread_mutex); ap_poll_kthread = kthread_run(ap_poll_thread, NULL, "appoll"); - rc = PTR_RET(ap_poll_kthread); + rc = PTR_ERR_OR_ZERO(ap_poll_kthread); if (rc) ap_poll_kthread = NULL; mutex_unlock(&ap_poll_thread_mutex); @@ -1242,7 +1242,7 @@ static int __init ap_module_init(void) /* Create /sys/devices/ap. */ ap_root_device = root_device_register("ap"); - rc = PTR_RET(ap_root_device); + rc = PTR_ERR_OR_ZERO(ap_root_device); if (rc) goto out_bus; -- 2.7.4