diff options
author | Sridhar Samudrala <sri@us.ibm.com> | 2006-08-22 00:24:09 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 14:55:19 -0700 |
commit | 8abfedd889e46ad4977dfcdab737edf5c5803c62 (patch) | |
tree | 0c2921fb1b708b7c06d9a0fd81defad0c7a9e562 /net/sctp/socket.c | |
parent | eb5fa39f5ef490c72901b547ac5e7211efd47d56 (diff) | |
download | lwn-8abfedd889e46ad4977dfcdab737edf5c5803c62.tar.gz lwn-8abfedd889e46ad4977dfcdab737edf5c5803c62.zip |
[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/sctp/socket.c')
-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 30d2dbeebb43..3b6e82cb372f 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) |