Commit 14ecf42b authored by Camylla Goncalves Cantanheide's avatar Camylla Goncalves Cantanheide Committed by Greg Kroah-Hartman

staging: rtl8192u: Replaces symbolic permissions with octal permissions

Solves following checkpatch.pl issue:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider
using octal permissions '0444'.
Signed-off-by: default avatarCamylla Goncalves Cantanheide <c.cantanheide@gmail.com>
Link: https://lore.kernel.org/r/20200317071959.556-1-c.cantanheide@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2587768a
...@@ -613,13 +613,13 @@ static void rtl8192_proc_init_one(struct net_device *dev) ...@@ -613,13 +613,13 @@ static void rtl8192_proc_init_one(struct net_device *dev)
if (!dir) if (!dir)
return; return;
proc_create_single("stats-rx", S_IFREG | S_IRUGO, dir, proc_create_single("stats-rx", S_IFREG | 0444, dir,
proc_get_stats_rx); proc_get_stats_rx);
proc_create_single("stats-tx", S_IFREG | S_IRUGO, dir, proc_create_single("stats-tx", S_IFREG | 0444, dir,
proc_get_stats_tx); proc_get_stats_tx);
proc_create_single("stats-ap", S_IFREG | S_IRUGO, dir, proc_create_single("stats-ap", S_IFREG | 0444, dir,
proc_get_stats_ap); proc_get_stats_ap);
proc_create_single("registers", S_IFREG | S_IRUGO, dir, proc_create_single("registers", S_IFREG | 0444, dir,
proc_get_registers); proc_get_registers);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment