mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 01:53:54 +08:00
Removed IS_ERR() from minimal example.
This commit is contained in:
@@ -376,8 +376,8 @@ int __init init_mini_module(void)
|
||||
printk(KERN_INFO PFX "Starting...\n");
|
||||
|
||||
master = ecrt_request_master(0);
|
||||
if (IS_ERR(master)) {
|
||||
ret = PTR_ERR(master);
|
||||
if (!master) {
|
||||
ret = -EBUSY;
|
||||
printk(KERN_ERR PFX "Requesting master 0 failed.\n");
|
||||
goto out_return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user