Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16c1fdf4 authored by Florian Schmaus's avatar Florian Schmaus Committed by Jens Axboe
Browse files

bcache: do not assign in if condition in bcache_init()



Fixes an error condition reported by checkpatch.pl which is caused by
assigning a variable in an if condition.

Signed-off-by: default avatarFlorian Schmaus <flo@geekplace.eu>
Signed-off-by: default avatarColy Li <colyli@suse.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6268dc2c
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -2330,9 +2330,15 @@ static int __init bcache_init(void)
		return bcache_major;
	}

	if (!(bcache_wq = alloc_workqueue("bcache", WQ_MEM_RECLAIM, 0)) ||
	    !(bcache_kobj = kobject_create_and_add("bcache", fs_kobj)) ||
	    bch_request_init() ||
	bcache_wq = alloc_workqueue("bcache", WQ_MEM_RECLAIM, 0);
	if (!bcache_wq)
		goto err;

	bcache_kobj = kobject_create_and_add("bcache", fs_kobj);
	if (!bcache_kobj)
		goto err;

	if (bch_request_init() ||
	    bch_debug_init(bcache_kobj) || closure_debug_init() ||
	    sysfs_create_files(bcache_kobj, files))
		goto err;