Skip to content

Commit 54bcfa6

Browse files
geyslanTrond Myklebust
authored andcommitted
nfs: Use PTR_ERR_OR_ZERO in 'nfs41_callback_up' function
Use 'PTR_ERR_OR_ZERO()' rather than 'IS_ERR(...) ? PTR_ERR(...) : 0'. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent 4f5829d commit 54bcfa6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/nfs/callback.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ nfs41_callback_up(struct svc_serv *serv)
164164
svc_xprt_put(serv->sv_bc_xprt);
165165
serv->sv_bc_xprt = NULL;
166166
}
167-
dprintk("--> %s return %ld\n", __func__,
168-
IS_ERR(rqstp) ? PTR_ERR(rqstp) : 0);
167+
dprintk("--> %s return %d\n", __func__, PTR_ERR_OR_ZERO(rqstp));
169168
return rqstp;
170169
}
171170

0 commit comments

Comments
 (0)