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>
This commit is contained in:
@@ -215,7 +215,7 @@ void rds_threads_exit(void)
|
||||
int __init rds_threads_init(void)
|
||||
{
|
||||
rds_wq = create_workqueue("krdsd");
|
||||
if (rds_wq == NULL)
|
||||
if (!rds_wq)
|
||||
return -ENOMEM;
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user