diff --git a/fs/dirty_pages.c b/fs/dirty_pages.c index ed4d3346da3bdfe7fbc3e479e5cd22103a2b2ca7..0e718ead417f07ce432a39fbd3711614f1bb9d84 100644 --- a/fs/dirty_pages.c +++ b/fs/dirty_pages.c @@ -309,18 +309,13 @@ static ssize_t write_proc( static int proc_dpages_open(struct inode *inode, struct file *filp) { - int ret; - struct seq_file *m; - if (buf_dirty == NULL || buf_size == 0) { pr_warn("please allocate buffer before getting dirty pages\n"); return -ENOMEM; } - ret = single_open(filp, proc_dpages_show, NULL); - m = filp->private_data; + return single_open(filp, proc_dpages_show, NULL); - return ret; } static int seq_release_dirty(struct inode *inode, struct file *file)