Merge pull request #176 from linD026/master
vinput: Fix missing error code
This commit is contained in:
commit
910715dab6
|
@ -369,6 +369,7 @@ static int __init vinput_init(void)
|
||||||
vinput_dev = register_chrdev(0, DRIVER_NAME, &vinput_fops);
|
vinput_dev = register_chrdev(0, DRIVER_NAME, &vinput_fops);
|
||||||
if (vinput_dev < 0) {
|
if (vinput_dev < 0) {
|
||||||
pr_err("vinput: Unable to allocate char dev region\n");
|
pr_err("vinput: Unable to allocate char dev region\n");
|
||||||
|
err = vinput_dev;
|
||||||
goto failed_alloc;
|
goto failed_alloc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user