diff options
author | Sridhar Samudrala <sri@us.ibm.com> | 2006-08-22 07:24:09 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 21:55:19 (GMT) |
commit | 8abfedd889e46ad4977dfcdab737edf5c5803c62 (patch) | |
tree | 0c2921fb1b708b7c06d9a0fd81defad0c7a9e562 /net | |
parent | eb5fa39f5ef490c72901b547ac5e7211efd47d56 (diff) | |
download | linux-fsl-qoriq-8abfedd889e46ad4977dfcdab737edf5c5803c62.tar.xz |
[SCTP]: Use the flags value that is passed as an arg to sctp_accept.
No need to do multiple dereferences - sk->sk_socket->file->f_flags
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sctp/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 30d2dbe..3b6e82c 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -2970,7 +2970,7 @@ SCTP_STATIC struct sock *sctp_accept(struct sock *sk, int flags, int *err) goto out; } - timeo = sock_rcvtimeo(sk, sk->sk_socket->file->f_flags & O_NONBLOCK); + timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); error = sctp_wait_for_accept(sk, timeo); if (error) |