net: Use octal not symbolic permissions
Prefer the direct use of octal for permissions. Done with checkpatch -f --types=SYMBOLIC_PERMS --fix-inplace and some typing. Miscellanea: o Whitespace neatening around these conversions. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cb6219a2f5
commit
d6444062f8
@@ -690,7 +690,7 @@ minstrel_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir)
|
||||
#ifdef CONFIG_MAC80211_DEBUGFS
|
||||
mp->fixed_rate_idx = (u32) -1;
|
||||
mp->dbg_fixed_rate = debugfs_create_u32("fixed_rate_idx",
|
||||
S_IRUGO | S_IWUGO, debugfsdir, &mp->fixed_rate_idx);
|
||||
0666, debugfsdir, &mp->fixed_rate_idx);
|
||||
#endif
|
||||
|
||||
minstrel_init_cck_rates(mp);
|
||||
|
@@ -214,11 +214,11 @@ minstrel_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir)
|
||||
{
|
||||
struct minstrel_sta_info *mi = priv_sta;
|
||||
|
||||
mi->dbg_stats = debugfs_create_file("rc_stats", S_IRUGO, dir, mi,
|
||||
&minstrel_stat_fops);
|
||||
mi->dbg_stats = debugfs_create_file("rc_stats", 0444, dir, mi,
|
||||
&minstrel_stat_fops);
|
||||
|
||||
mi->dbg_stats_csv = debugfs_create_file("rc_stats_csv", S_IRUGO, dir,
|
||||
mi, &minstrel_stat_csv_fops);
|
||||
mi->dbg_stats_csv = debugfs_create_file("rc_stats_csv", 0444, dir, mi,
|
||||
&minstrel_stat_csv_fops);
|
||||
}
|
||||
|
||||
void
|
||||
|
@@ -303,10 +303,10 @@ minstrel_ht_add_sta_debugfs(void *priv, void *priv_sta, struct dentry *dir)
|
||||
{
|
||||
struct minstrel_ht_sta_priv *msp = priv_sta;
|
||||
|
||||
msp->dbg_stats = debugfs_create_file("rc_stats", S_IRUGO, dir, msp,
|
||||
&minstrel_ht_stat_fops);
|
||||
msp->dbg_stats_csv = debugfs_create_file("rc_stats_csv", S_IRUGO,
|
||||
dir, msp, &minstrel_ht_stat_csv_fops);
|
||||
msp->dbg_stats = debugfs_create_file("rc_stats", 0444, dir, msp,
|
||||
&minstrel_ht_stat_fops);
|
||||
msp->dbg_stats_csv = debugfs_create_file("rc_stats_csv", 0444, dir, msp,
|
||||
&minstrel_ht_stat_csv_fops);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user