summaryrefslogtreecommitdiffstats
path: root/net/rds/ib_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rds/ib_sysctl.c')
-rw-r--r--net/rds/ib_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/ib_sysctl.c b/net/rds/ib_sysctl.c
index 03f01cb4e0f..c070524c4d9 100644
--- a/net/rds/ib_sysctl.c
+++ b/net/rds/ib_sysctl.c
@@ -135,7 +135,7 @@ void rds_ib_sysctl_exit(void)
int __init rds_ib_sysctl_init(void)
{
rds_ib_sysctl_hdr = register_sysctl_paths(rds_ib_sysctl_path, rds_ib_sysctl_table);
- if (rds_ib_sysctl_hdr == NULL)
+ if (!rds_ib_sysctl_hdr)
return -ENOMEM;
return 0;
}