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:
@@ -125,7 +125,7 @@ void rds_iw_sysctl_exit(void)
|
||||
int __init rds_iw_sysctl_init(void)
|
||||
{
|
||||
rds_iw_sysctl_hdr = register_sysctl_paths(rds_iw_sysctl_path, rds_iw_sysctl_table);
|
||||
if (rds_iw_sysctl_hdr == NULL)
|
||||
if (!rds_iw_sysctl_hdr)
|
||||
return -ENOMEM;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user