Skip to content

Commit b699b71

Browse files
smokeman85jmberg-intel
authored andcommitted
cfg80211 debugfs: Cleanup some checkpatch issues
This fixes the checkpatch.pl warnings: * Macros should not use a trailing semicolon. * Spaces required around that '='. * Symbolic permissions 'S_IRUGO' are not preferred. Signed-off-by: Dmitriy Pichugin <smokeman85@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent bddb2af commit b699b71

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎net/wireless/debugfs.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
static ssize_t name## _read(struct file *file, char __user *userbuf, \
1818
size_t count, loff_t *ppos) \
1919
{ \
20-
struct wiphy *wiphy= file->private_data; \
20+
struct wiphy *wiphy = file->private_data; \
2121
char buf[buflen]; \
2222
int res; \
2323
\
@@ -29,14 +29,14 @@ static const struct file_operations name## _ops = { \
2929
.read = name## _read, \
3030
.open = simple_open, \
3131
.llseek = generic_file_llseek, \
32-
};
32+
}
3333

3434
DEBUGFS_READONLY_FILE(rts_threshold, 20, "%d",
35-
wiphy->rts_threshold)
35+
wiphy->rts_threshold);
3636
DEBUGFS_READONLY_FILE(fragmentation_threshold, 20, "%d",
3737
wiphy->frag_threshold);
3838
DEBUGFS_READONLY_FILE(short_retry_limit, 20, "%d",
39-
wiphy->retry_short)
39+
wiphy->retry_short);
4040
DEBUGFS_READONLY_FILE(long_retry_limit, 20, "%d",
4141
wiphy->retry_long);
4242

@@ -103,7 +103,7 @@ static const struct file_operations ht40allow_map_ops = {
103103
};
104104

105105
#define DEBUGFS_ADD(name) \
106-
debugfs_create_file(#name, S_IRUGO, phyd, &rdev->wiphy, &name## _ops);
106+
debugfs_create_file(#name, 0444, phyd, &rdev->wiphy, &name## _ops)
107107

108108
void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev)
109109
{

0 commit comments

Comments
 (0)