Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165694
b: refs/heads/master
c: dd5d81f
h: refs/heads/master
v: v3
  • Loading branch information
Renzo Davoli authored and Linus Torvalds committed Sep 24, 2009
1 parent f651eb4 commit 49712bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb521c5de070b86a1e049e2dbf62328f717ff1e8
refs/heads/master: dd5d81f326da8d151939b833993b799c0d0d1d6e
3 changes: 0 additions & 3 deletions trunk/fs/char_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ int __register_chrdev(unsigned int major, unsigned int baseminor,
{
struct char_device_struct *cd;
struct cdev *cdev;
char *s;
int err = -ENOMEM;

cd = __register_chrdev_region(major, baseminor, count, name);
Expand All @@ -278,8 +277,6 @@ int __register_chrdev(unsigned int major, unsigned int baseminor,
cdev->owner = fops->owner;
cdev->ops = fops;
kobject_set_name(&cdev->kobj, "%s", name);
for (s = strchr(kobject_name(&cdev->kobj),'/'); s; s = strchr(s, '/'))
*s = '!';

err = cdev_add(cdev, MKDEV(cd->major, baseminor), count);
if (err)
Expand Down

0 comments on commit 49712bf

Please sign in to comment.