hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/md/bcache/super.c
....@@ -1748,7 +1748,7 @@
17481748 if (!IS_ERR_OR_NULL(c->gc_thread))
17491749 kthread_stop(c->gc_thread);
17501750
1751
- if (!IS_ERR_OR_NULL(c->root))
1751
+ if (!IS_ERR(c->root))
17521752 list_add(&c->root->list, &c->btree_cache);
17531753
17541754 /*
....@@ -2112,7 +2112,7 @@
21122112
21132113 err = "cannot allocate new btree root";
21142114 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))
21162116 goto err;
21172117
21182118 mutex_lock(&c->root->write_lock);