Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96113
b: refs/heads/master
c: db176c6
h: refs/heads/master
i:
  96111: 244570a
v: v3
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed May 6, 2008
1 parent 0f22081 commit 74a9efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 6ce07c7b61e74af35a05060a2d6341f68fd92c9e
refs/heads/master: db176c6ed8974fae94328ad5ac9e70b094ff22fd
3 changes: 1 addition & 2 deletions trunk/drivers/base/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ int sysdev_driver_register(struct sysdev_class *cls, struct sysdev_driver *drv)
}

/* Check whether this driver has already been added to a class. */
if ((drv->entry.next != drv->entry.prev) ||
(drv->entry.next != NULL)) {
if (drv->entry.next && !list_empty(&drv->entry)) {
printk(KERN_WARNING "sysdev: class %s: driver (%p) has already"
" been registered to a class, something is wrong, but "
"will forge on!\n", cls->name, drv);
Expand Down

0 comments on commit 74a9efa

Please sign in to comment.