diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 22:20:35 +0300 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 22:20:35 +0300 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /net/sched/sch_api.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
| download | linux-7731b8bc94e599c9a79e428f3359ff2c34b7576a.tar.xz | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'net/sched/sch_api.c')
| -rw-r--r-- | net/sched/sch_api.c | 14 | 
1 files changed, 1 insertions, 13 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 106dae7e4818..54eca685420f 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -2092,23 +2092,11 @@ static int psched_show(struct seq_file *seq, void *v)  	return 0;  } -static int psched_open(struct inode *inode, struct file *file) -{ -	return single_open(file, psched_show, NULL); -} - -static const struct file_operations psched_fops = { -	.open = psched_open, -	.read  = seq_read, -	.llseek = seq_lseek, -	.release = single_release, -}; -  static int __net_init psched_net_init(struct net *net)  {  	struct proc_dir_entry *e; -	e = proc_create("psched", 0, net->proc_net, &psched_fops); +	e = proc_create_single("psched", 0, net->proc_net, psched_show);  	if (e == NULL)  		return -ENOMEM;  | 
