mirror of https://github.com/torvalds/linux.git
dibs: Check correct variable in dibs_init()
There is a typo in this code. It should check "dibs_class" instead of
"&dibs_class". Remove the &.
Fixes: 8047373498 ("dibs: Create class dibs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Link: https://patch.msgid.link/aNP-XcrjSUjZAu4a@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
72bc38077e
commit
231889d9b6
|
|
@ -258,8 +258,8 @@ static int __init dibs_init(void)
|
||||||
max_client = 0;
|
max_client = 0;
|
||||||
|
|
||||||
dibs_class = class_create("dibs");
|
dibs_class = class_create("dibs");
|
||||||
if (IS_ERR(&dibs_class))
|
if (IS_ERR(dibs_class))
|
||||||
return PTR_ERR(&dibs_class);
|
return PTR_ERR(dibs_class);
|
||||||
|
|
||||||
rc = dibs_loopback_init();
|
rc = dibs_loopback_init();
|
||||||
if (rc)
|
if (rc)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue