]> Git Repo - linux.git/blobdiff - net/rds/loop.c
RDS: cleanup: remove "== NULL"s and "!= NULL"s in ptr comparisons
[linux.git] / net / rds / loop.c
index dd9879379457e29bc9afcb45bacbb58b4ffd092e..a74b469a844aefe361805887c554afb55e144042 100644 (file)
@@ -112,7 +112,7 @@ static int rds_loop_conn_alloc(struct rds_connection *conn, gfp_t gfp)
        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);
This page took 0.031887 seconds and 4 git commands to generate.