From patchwork Mon Oct 14 20:24:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Geyslan G. Bem" X-Patchwork-Id: 3039571 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BE4C0BF924 for ; Mon, 14 Oct 2013 20:29:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4A7A201B6 for ; Mon, 14 Oct 2013 20:29:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E2385201B5 for ; Mon, 14 Oct 2013 20:29:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932892Ab3JNU3A (ORCPT ); Mon, 14 Oct 2013 16:29:00 -0400 Received: from mail-vc0-f173.google.com ([209.85.220.173]:55164 "EHLO mail-vc0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932266Ab3JNU25 (ORCPT ); Mon, 14 Oct 2013 16:28:57 -0400 Received: by mail-vc0-f173.google.com with SMTP id if17so4686455vcb.4 for ; Mon, 14 Oct 2013 13:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DA6WK+plyRS5E4P1lS/o1OYJ0viDn1vjK2pPfJkbpGU=; b=xoNwdq8OvF+0R2eGkW6t9uxEeWTu2UMuWyRSrczpbsBPNnZaxhmYu9NCT/3bkYukZe EkLp8R4jKv0Gt5p0MymDNs7uAaI/1+ehmymMMWSD0wZvBccgsHuOOeBHgrn/EkE311Fe Vxlj4MXtqPjm5ZFVlMHoC8E625JAEVZTKNdAsjP7AdfnYooyqCGg+L5qnYBsrvEJKryk 9Q8kjup6C8ddtgr1Peli/EC94uwWnaYOsQ/HqmfoFpUVBaI9eV/2lc39j0ITMGeGH9SG Tkq1zn4lCUPnPWckbHHPWd5n/DMhpk5eVG6eO8qQT2KpTbbXq+hcpPtfnH+VM+hbEYI2 QNFw== X-Received: by 10.52.65.136 with SMTP id x8mr2344697vds.23.1381782536164; Mon, 14 Oct 2013 13:28:56 -0700 (PDT) Received: from localhost.localdomain (201-4-216-47.user.veloxzone.com.br. [201.4.216.47]) by mx.google.com with ESMTPSA id z4sm83253330vdj.6.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 13:28:55 -0700 (PDT) From: "Geyslan G. Bem" To: Trond.Myklebust@netapp.com Cc: schumaker.anna@gmail.com, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-br@googlegroups.com, "Geyslan G. Bem" Subject: [PATCH v2] nfs: Use PTR_ERR_OR_ZERO in 'nfs41_callback_up' function Date: Mon, 14 Oct 2013 17:24:15 -0300 Message-Id: <1381782256-2434-1-git-send-email-geyslan@gmail.com> X-Mailer: git-send-email 1.8.4 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use 'PTR_ERR_OR_ZERO()' rather than 'IS_ERR(...) ? PTR_ERR(...) : 0'. Signed-off-by: Geyslan G. Bem --- fs/nfs/callback.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c index 67cd732..073b4cf 100644 --- a/fs/nfs/callback.c +++ b/fs/nfs/callback.c @@ -164,8 +164,7 @@ nfs41_callback_up(struct svc_serv *serv) svc_xprt_put(serv->sv_bc_xprt); serv->sv_bc_xprt = NULL; } - dprintk("--> %s return %ld\n", __func__, - IS_ERR(rqstp) ? PTR_ERR(rqstp) : 0); + dprintk("--> %s return %d\n", __func__, PTR_ERR_OR_ZERO(rqstp)); return rqstp; }