aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/xenbus.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2018-03-23 18:54:39 -0400
committerDavid S. Miller <davem@davemloft.net>2018-03-26 12:07:49 -0400
commitd61e40385655fbba659fc3d81df9bdf1b848e263 (patch)
tree434dfc436eae37889fa25c484c310ce05952269a /drivers/net/xen-netback/xenbus.c
parentd6444062f8f07c346a21bd815af4a3dc8b231574 (diff)
drivers/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> Reviewed-by: Wei Liu <wei.liu2@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback/xenbus.c')
-rw-r--r--drivers/net/xen-netback/xenbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c
index a56d3eab35dd..e1aef253601e 100644
--- a/drivers/net/xen-netback/xenbus.c
+++ b/drivers/net/xen-netback/xenbus.c
@@ -224,7 +224,7 @@ static void xenvif_debugfs_addif(struct xenvif *vif)
224 224
225 snprintf(filename, sizeof(filename), "io_ring_q%d", i); 225 snprintf(filename, sizeof(filename), "io_ring_q%d", i);
226 pfile = debugfs_create_file(filename, 226 pfile = debugfs_create_file(filename,
227 S_IRUSR | S_IWUSR, 227 0600,
228 vif->xenvif_dbg_root, 228 vif->xenvif_dbg_root,
229 &vif->queues[i], 229 &vif->queues[i],
230 &xenvif_dbg_io_ring_ops_fops); 230 &xenvif_dbg_io_ring_ops_fops);
@@ -235,7 +235,7 @@ static void xenvif_debugfs_addif(struct xenvif *vif)
235 235
236 if (vif->ctrl_irq) { 236 if (vif->ctrl_irq) {
237 pfile = debugfs_create_file("ctrl", 237 pfile = debugfs_create_file("ctrl",
238 S_IRUSR, 238 0400,
239 vif->xenvif_dbg_root, 239 vif->xenvif_dbg_root,
240 vif, 240 vif,
241 &xenvif_dbg_ctrl_ops_fops); 241 &xenvif_dbg_ctrl_ops_fops);