Commit:     5f1835da79df8607ecbd69f648b5b140b7a0b8ba
Parent:     4db29c17643a9968817f252405f495da4f147d55
Author:     Alan Stern <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 16 16:13:06 2007 -0400
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Wed Aug 22 14:35:36 2007 -0700

    sysfs: don't warn on removal of a nonexistent binary file
    This patch (as960) removes the error message and stack dump logged by
    sysfs_remove_bin_file() when someone tries to remove a nonexistent
    file.  The warning doesn't seem to be needed, since none of the other
    file-, symlink-, or directory-removal routines in sysfs complain in a
    comparable way.
    Signed-off-by: Alan Stern <[EMAIL PROTECTED]>
    Acked-by: Tejun Heo <[EMAIL PROTECTED]>
    Acked-by: Cornelia Huck <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 fs/sysfs/bin.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/fs/sysfs/bin.c b/fs/sysfs/bin.c
index 135353f..5afe2a2 100644
--- a/fs/sysfs/bin.c
+++ b/fs/sysfs/bin.c
@@ -248,12 +248,7 @@ int sysfs_create_bin_file(struct kobject * kobj, struct 
bin_attribute * attr)
 void sysfs_remove_bin_file(struct kobject * kobj, struct bin_attribute * attr)
-       if (sysfs_hash_and_remove(kobj->sd, attr-> < 0) {
-               printk(KERN_ERR "%s: "
-                       "bad dentry or inode or no such file: \"%s\"\n",
-                       __FUNCTION__, attr->;
-               dump_stack();
-       }
+       sysfs_hash_and_remove(kobj->sd, attr->;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to