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/threads.c b/net/rds/threads.c index 6e2e43d..7a8ca7a 100644 --- a/net/rds/threads.c +++ b/net/rds/threads.c
@@ -215,7 +215,7 @@ int __init rds_threads_init(void) { rds_wq = create_workqueue("krdsd"); - if (rds_wq == NULL) + if (!rds_wq) return -ENOMEM; return 0;