Convert ERR_PTR(PTR_ERR(p)) instances to ERR_CAST(p)
Convert instances of ERR_PTR(PTR_ERR(p)) to ERR_CAST(p) using: perl -spi -e 's/ERR_PTR[(]PTR_ERR[(](.*)[)][)]/ERR_CAST(\1)/' `grep -rl 'ERR_PTR[(]*PTR_ERR' fs crypto net security` Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d1bc8e9544
commit
e231c2ee64
28 changed files with 39 additions and 39 deletions
|
@ -239,7 +239,7 @@ static struct rxrpc_transport *rxrpc_name_to_transport(struct socket *sock,
|
|||
/* find a remote transport endpoint from the local one */
|
||||
peer = rxrpc_get_peer(srx, gfp);
|
||||
if (IS_ERR(peer))
|
||||
return ERR_PTR(PTR_ERR(peer));
|
||||
return ERR_CAST(peer);
|
||||
|
||||
/* find a transport */
|
||||
trans = rxrpc_get_transport(rx->local, peer, gfp);
|
||||
|
@ -282,7 +282,7 @@ struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
|
|||
trans = rxrpc_name_to_transport(sock, (struct sockaddr *) srx,
|
||||
sizeof(*srx), 0, gfp);
|
||||
if (IS_ERR(trans)) {
|
||||
call = ERR_PTR(PTR_ERR(trans));
|
||||
call = ERR_CAST(trans);
|
||||
trans = NULL;
|
||||
goto out;
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
|
|||
|
||||
bundle = rxrpc_get_bundle(rx, trans, key, service_id, gfp);
|
||||
if (IS_ERR(bundle)) {
|
||||
call = ERR_PTR(PTR_ERR(bundle));
|
||||
call = ERR_CAST(bundle);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue