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/loop.c b/net/rds/loop.c index dd98793..a74b469 100644 --- a/net/rds/loop.c +++ b/net/rds/loop.c
@@ -112,7 +112,7 @@ unsigned long flags; lc = kzalloc(sizeof(struct rds_loop_connection), GFP_KERNEL); - if (lc == NULL) + if (!lc) return -ENOMEM; INIT_LIST_HEAD(&lc->loop_node);