projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: sctp: spare unnecessary comparison in sctp_trans_elect_best
[linux-2.6-block.git]
/
net
/
sctp
/
associola.c
diff --git
a/net/sctp/associola.c
b/net/sctp/associola.c
index aaafb3250c6a5c6eec9c9a5401c6f4f6129bcfd5..104fae489ad4dfde925df1fe2110b6277dfec289 100644
(file)
--- a/
net/sctp/associola.c
+++ b/
net/sctp/associola.c
@@
-1245,7
+1245,7
@@
static struct sctp_transport *sctp_trans_elect_best(struct sctp_transport *curr,
{
u8 score_curr, score_best;
- if (best == NULL)
+ if (best == NULL
|| curr == best
)
return curr;
score_curr = sctp_trans_score(curr);