Skip to content

Commit 55b77fa

Browse files
authored
Merge pull request #104 from linD026/master
ioctl: Remove unnecessary initialization
2 parents a1aa18e + fa035da commit 55b77fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static struct file_operations fops = {
149149

150150
static int ioctl_init(void)
151151
{
152-
dev_t dev = MKDEV(test_ioctl_major, 0);
152+
dev_t dev;
153153
int alloc_ret = 0;
154154
int cdev_ret = 0;
155155
alloc_ret = alloc_chrdev_region(&dev, 0, num_of_dev, DRIVER_NAME);

0 commit comments

Comments
 (0)