projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1511949
)
sctp: remove useless err from sctp_association_init
author
Xin Long
<
[email protected]
>
Mon, 20 Mar 2017 10:00:28 +0000
(18:00 +0800)
committer
David S. Miller
<
[email protected]
>
Wed, 22 Mar 2017 17:57:52 +0000
(10:57 -0700)
This patch is to remove the unnecessary temporary variable 'err' from
sctp_association_init.
Signed-off-by: Xin Long <
[email protected]
>
Acked-by: Neil Horman <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sctp/associola.c
patch
|
blob
|
history
diff --git
a/net/sctp/associola.c
b/net/sctp/associola.c
index 2a6835b4562b61cff52425a530524f1c48bc7919..0439a1a6836784fd5096d85a4217980cb5c49690 100644
(file)
--- a/
net/sctp/associola.c
+++ b/
net/sctp/associola.c
@@
-71,9
+71,8
@@
static struct sctp_association *sctp_association_init(struct sctp_association *a
{
struct net *net = sock_net(sk);
struct sctp_sock *sp;
- int i;
sctp_paramhdr_t *p;
- int
err
;
+ int
i
;
/* Retrieve the SCTP per socket area. */
sp = sctp_sk((struct sock *)sk);
@@
-264,8
+263,7
@@
static struct sctp_association *sctp_association_init(struct sctp_association *a
/* AUTH related initializations */
INIT_LIST_HEAD(&asoc->endpoint_shared_keys);
- err = sctp_auth_asoc_copy_shkeys(ep, asoc, gfp);
- if (err)
+ if (sctp_auth_asoc_copy_shkeys(ep, asoc, gfp))
goto fail_init;
asoc->active_key_id = ep->active_key_id;