hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/wireless/rsi/rsi_91x_debugfs.c
....@@ -1,4 +1,4 @@
1
-/**
1
+/*
22 * Copyright (c) 2014 Redpine Signals Inc.
33 *
44 * Permission to use, copy, modify, and/or distribute this software for any
....@@ -59,7 +59,7 @@
5959 }
6060
6161 /**
62
- * rsi_sdio_stats_open() - This funtion calls single open function of seq_file
62
+ * rsi_sdio_stats_open() - This function calls single open function of seq_file
6363 * to open file and read contents from it.
6464 * @inode: Pointer to the inode structure.
6565 * @file: Pointer to the file structure.
....@@ -93,7 +93,7 @@
9393 }
9494
9595 /**
96
- * rsi_version_open() - This funtion calls single open function of seq_file to
96
+ * rsi_version_open() - This function calls single open function of seq_file to
9797 * open file and read contents from it.
9898 * @inode: Pointer to the inode structure.
9999 * @file: Pointer to the file structure.
....@@ -178,7 +178,7 @@
178178 }
179179
180180 /**
181
- * rsi_stats_open() - This funtion calls single open function of seq_file to
181
+ * rsi_stats_open() - This function calls single open function of seq_file to
182182 * open file and read contents from it.
183183 * @inode: Pointer to the inode structure.
184184 * @file: Pointer to the file structure.
....@@ -207,7 +207,7 @@
207207 }
208208
209209 /**
210
- * rsi_debug_read() - This funtion calls single open function of seq_file to
210
+ * rsi_debug_read() - This function calls single open function of seq_file to
211211 * open file and read contents from it.
212212 * @inode: Pointer to the inode structure.
213213 * @file: Pointer to the file structure.
....@@ -296,11 +296,6 @@
296296 wiphy_name(adapter->hw->wiphy));
297297
298298 dev_dbgfs->subdir = debugfs_create_dir(devdir, NULL);
299
-
300
- if (!dev_dbgfs->subdir) {
301
- kfree(dev_dbgfs);
302
- return -ENOMEM;
303
- }
304299
305300 for (ii = 0; ii < adapter->num_debugfs_entries; ii++) {
306301 files = &dev_debugfs_files[ii];