Skip to content

Commit

Permalink
staging: unisys: visornic: Replace symbolic perms with octal
Browse files Browse the repository at this point in the history
Replace symbolic permissions S_IRUSR and S_IWUSR for their octal
counterparts

Signed-off-by: Thomas Jespersen <laumann.thomas@gmail.com>
Acked-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Thomas Jespersen authored and Greg Kroah-Hartman committed Apr 8, 2017
1 parent 008b5d2 commit bca74ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/unisys/visornic/visornic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2146,11 +2146,11 @@ static int visornic_init(void)
if (!visornic_debugfs_dir)
return err;

ret = debugfs_create_file("info", S_IRUSR, visornic_debugfs_dir, NULL,
ret = debugfs_create_file("info", 0400, visornic_debugfs_dir, NULL,
&debugfs_info_fops);
if (!ret)
goto cleanup_debugfs;
ret = debugfs_create_file("enable_ints", S_IWUSR, visornic_debugfs_dir,
ret = debugfs_create_file("enable_ints", 0200, visornic_debugfs_dir,
NULL, &debugfs_enable_ints_fops);
if (!ret)
goto cleanup_debugfs;
Expand Down

0 comments on commit bca74ee

Please sign in to comment.