projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RDS: cleanup: remove "== NULL"s and "!= NULL"s in ptr comparisons
[firefly-linux-kernel-4.4.55.git]
/
net
/
rds
/
tcp_connect.c
diff --git
a/net/rds/tcp_connect.c
b/net/rds/tcp_connect.c
index c397524c039cdb28140ff5f6c0fe2359cebfa3b5..a65ee78db0c54e1062186b9b132fe46fac380c91 100644
(file)
--- a/
net/rds/tcp_connect.c
+++ b/
net/rds/tcp_connect.c
@@
-45,7
+45,7
@@
void rds_tcp_state_change(struct sock *sk)
read_lock(&sk->sk_callback_lock);
conn = sk->sk_user_data;
- if (
conn == NULL
) {
+ if (
!conn
) {
state_change = sk->sk_state_change;
goto out;
}