diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-07-28 15:14:43 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-07-28 15:14:43 -0400 |
| commit | 414f746d232d41ed6ae8632c4495ae795373c44b (patch) | |
| tree | 167f9bc8f139c6e82e6732b38c7a938b8a9d31cd /fs/sysfs/dir.c | |
| parent | 5a7a201c51c324876d00a54e7208af6af12d1ca4 (diff) | |
| parent | c9272c4f9fbe2087beb3392f526dc5b19efaa56b (diff) | |
Merge branch 'linus' into cpus4096
Diffstat (limited to 'fs/sysfs/dir.c')
| -rw-r--r-- | fs/sysfs/dir.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index c1a7efb310bf..aedaeba82ae5 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c | |||
| @@ -459,11 +459,8 @@ int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd) | |||
| 459 | int ret; | 459 | int ret; |
| 460 | 460 | ||
| 461 | ret = __sysfs_add_one(acxt, sd); | 461 | ret = __sysfs_add_one(acxt, sd); |
| 462 | if (ret == -EEXIST) { | 462 | WARN(ret == -EEXIST, KERN_WARNING "sysfs: duplicate filename '%s' " |
| 463 | printk(KERN_WARNING "sysfs: duplicate filename '%s' " | ||
| 464 | "can not be created\n", sd->s_name); | 463 | "can not be created\n", sd->s_name); |
| 465 | WARN_ON(1); | ||
| 466 | } | ||
| 467 | return ret; | 464 | return ret; |
| 468 | } | 465 | } |
| 469 | 466 | ||
