Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60762
b: refs/heads/master
c: 294462a
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Jul 17, 2007
1 parent 3a928fe commit 3253015
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 62239ac2b301abc397e70986649666cfb7835907
refs/heads/master: 294462a5c6c4fb9a6ced9cb5a368ff335f1b656e
5 changes: 3 additions & 2 deletions trunk/block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ int unregister_blkdev(unsigned int major, const char *name)
for (n = &major_names[index]; *n; n = &(*n)->next)
if ((*n)->major == major)
break;
if (!*n || strcmp((*n)->name, name))
if (!*n || strcmp((*n)->name, name)) {
WARN_ON(1);
ret = -EINVAL;
else {
} else {
p = *n;
*n = p->next;
}
Expand Down

0 comments on commit 3253015

Please sign in to comment.