File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -470,10 +470,6 @@ static ssize_t regmap_cache_only_write_file(struct file *file,
470
470
if (err )
471
471
return count ;
472
472
473
- err = debugfs_file_get (file -> f_path .dentry );
474
- if (err )
475
- return err ;
476
-
477
473
map -> lock (map -> lock_arg );
478
474
479
475
if (new_val && !map -> cache_only ) {
@@ -486,7 +482,6 @@ static ssize_t regmap_cache_only_write_file(struct file *file,
486
482
map -> cache_only = new_val ;
487
483
488
484
map -> unlock (map -> lock_arg );
489
- debugfs_file_put (file -> f_path .dentry );
490
485
491
486
if (require_sync ) {
492
487
err = regcache_sync (map );
@@ -517,10 +512,6 @@ static ssize_t regmap_cache_bypass_write_file(struct file *file,
517
512
if (err )
518
513
return count ;
519
514
520
- err = debugfs_file_get (file -> f_path .dentry );
521
- if (err )
522
- return err ;
523
-
524
515
map -> lock (map -> lock_arg );
525
516
526
517
if (new_val && !map -> cache_bypass ) {
@@ -532,7 +523,6 @@ static ssize_t regmap_cache_bypass_write_file(struct file *file,
532
523
map -> cache_bypass = new_val ;
533
524
534
525
map -> unlock (map -> lock_arg );
535
- debugfs_file_put (file -> f_path .dentry );
536
526
537
527
return count ;
538
528
}
You can’t perform that action at this time.
0 commit comments