Skip to content

Commit

Permalink
mtd: rawnand: nandsim: Use octal permissions
Browse files Browse the repository at this point in the history
Symbolic permissions 'S_IRUSR' are not preferred. Checkpatch.pl
advises to use octal permissions '0400'.

Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
  • Loading branch information
miquelraynal committed May 31, 2020
1 parent 6be834c commit b81fa3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/nandsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ static int nandsim_debugfs_create(struct nandsim *ns)
return 0;
}

dent = debugfs_create_file("nandsim_wear_report", S_IRUSR, root, ns,
dent = debugfs_create_file("nandsim_wear_report", 0400, root, ns,
&nandsim_fops);
if (IS_ERR_OR_NULL(dent)) {
NS_ERR("cannot create \"nandsim_wear_report\" debugfs entry\n");
Expand Down

0 comments on commit b81fa3c

Please sign in to comment.