kernel/drivers/md/bcache/super.c
.. .. @@ -1748,7 +1748,7 @@ 1748 1748 if (!IS_ERR_OR_NULL(c->gc_thread)) 1749 1749 kthread_stop(c->gc_thread); 1750 1750 1751 - if (!IS_ERR_OR_NULL(c->root))1751 + if (!IS_ERR(c->root))1752 1752 list_add(&c->root->list, &c->btree_cache); 1753 1753 1754 1754 /* .. .. @@ -2112,7 +2112,7 @@ 2112 2112 2113 2113 err = "cannot allocate new btree root"; 2114 2114 c->root = __bch_btree_node_alloc(c, NULL, 0, true, NULL); 2115 - if (IS_ERR_OR_NULL(c->root))2115 + if (IS_ERR(c->root))2116 2116 goto err; 2117 2117 2118 2118 mutex_lock(&c->root->write_lock);