Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31278
b: refs/heads/master
c: 79021a6
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jun 26, 2006
1 parent 75cdd31 commit 873047b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 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: 95dc112a5770dc670a1b45a3d9ee346fdd2b2697
refs/heads/master: 79021a625c36162d24c852bbbdb04f0c1cb32db3
7 changes: 0 additions & 7 deletions trunk/arch/um/drivers/ubd_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,6 @@ static int ubd_new_disk(int major, u64 size, int unit,

{
struct gendisk *disk;
char from[sizeof("ubd/nnnnn\0")], to[sizeof("discnnnnn/disc\0")];
int err;

disk = alloc_disk(1 << UBD_SHIFT);
Expand All @@ -642,12 +641,6 @@ static int ubd_new_disk(int major, u64 size, int unit,
if(major == MAJOR_NR){
sprintf(disk->disk_name, "ubd%c", 'a' + unit);
sprintf(disk->devfs_name, "ubd/disc%d", unit);
sprintf(from, "ubd/%d", unit);
sprintf(to, "disc%d/disc", unit);
err = devfs_mk_symlink(from, to);
if(err)
printk("ubd_new_disk failed to make link from %s to "
"%s, error = %d\n", from, to, err);
}
else {
sprintf(disk->disk_name, "ubd_fake%d", unit);
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/linux/devfs_fs_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...)
{
return 0;
}
static inline int devfs_mk_symlink(const char *name, const char *link)
{
return 0;
}
static inline void devfs_remove(const char *fmt, ...)
{
}
Expand Down

0 comments on commit 873047b

Please sign in to comment.