diff options
Diffstat (limited to 'fs/sysfs/file.c')
| -rw-r--r-- | fs/sysfs/file.c | 12 | 
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index da3fefe91a8f..1ad8c93c1b85 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -24,13 +24,6 @@  #include "sysfs.h" -/* used in crash dumps to help with debugging */ -static char last_sysfs_file[PATH_MAX]; -void sysfs_printk_last_file(void) -{ -	printk(KERN_EMERG "last sysfs file: %s\n", last_sysfs_file); -} -  /*   * There's one sysfs_buffer for each open file and one   * sysfs_open_dirent for each sysfs_dirent with one or more open @@ -337,11 +330,6 @@ static int sysfs_open_file(struct inode *inode, struct file *file)  	struct sysfs_buffer *buffer;  	const struct sysfs_ops *ops;  	int error = -EACCES; -	char *p; - -	p = d_path(&file->f_path, last_sysfs_file, sizeof(last_sysfs_file)); -	if (!IS_ERR(p)) -		memmove(last_sysfs_file, p, strlen(p) + 1);  	/* need attr_sd for attr and ops, its parent for kobj */  	if (!sysfs_get_active(attr_sd))  | 
