mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-22 13:58:19 +08:00
Merge pull request #104 from linD026/master
ioctl: Remove unnecessary initialization
This commit is contained in:
commit
55b77fac8d
|
@ -149,7 +149,7 @@ static struct file_operations fops = {
|
|||
|
||||
static int ioctl_init(void)
|
||||
{
|
||||
dev_t dev = MKDEV(test_ioctl_major, 0);
|
||||
dev_t dev;
|
||||
int alloc_ret = 0;
|
||||
int cdev_ret = 0;
|
||||
alloc_ret = alloc_chrdev_region(&dev, 0, num_of_dev, DRIVER_NAME);
|
||||
|
|
Loading…
Reference in New Issue
Block a user