commit | 8690bfa17aea4c42da1bcf90a7af93d161eca624 | [log] [tgz] |
---|---|---|
author | Andy Grover <andy.grover@oracle.com> | Tue Jan 12 11:56:44 2010 -0800 |
committer | Andy Grover <andy.grover@oracle.com> | Wed Sep 08 18:11:32 2010 -0700 |
tree | 88c4c5fa63aab0c18cf13228c4b3a6f980aa74be | |
parent | 2dc393573430f853e56e25bf4b41c34ba2aa8fd6 [diff] [blame] |
RDS: cleanup: remove "== NULL"s and "!= NULL"s in ptr comparisons Favor "if (foo)" style over "if (foo != NULL)". Signed-off-by: Andy Grover <andy.grover@oracle.com>
diff --git a/net/rds/af_rds.c b/net/rds/af_rds.c index aebfecb..63474e1 100644 --- a/net/rds/af_rds.c +++ b/net/rds/af_rds.c
@@ -62,7 +62,7 @@ struct rds_sock *rs; unsigned long flags; - if (sk == NULL) + if (!sk) goto out; rs = rds_sk_to_rs(sk);