删除冗余.

Signed-off-by: lion.chan <cy187lion@sina.com>
This commit is contained in:
lion.chan 2022-04-05 17:28:09 +08:00
parent 0ba9ecbebb
commit efdd665289
1 changed files with 0 additions and 1 deletions

View File

@ -213,7 +213,6 @@ static int demo_setup_cdev(struct demo_dev *devp, int index)
cdev_init(&devp->cdev, &demo_fops);
devp->cdev.owner = THIS_MODULE;
devp->cdev.ops = &demo_fops;
err = cdev_add(&devp->cdev, devno, 1);
if(err)
{