hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/net/wireless/debugfs.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * cfg80211 debugfs
34 *
45 * Copyright 2009 Luis R. Rodriguez <lrodriguez@atheros.com>
56 * Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/slab.h>
....@@ -68,9 +65,10 @@
6865 {
6966 struct wiphy *wiphy = file->private_data;
7067 char *buf;
71
- unsigned int offset = 0, buf_size = PAGE_SIZE, i, r;
68
+ unsigned int offset = 0, buf_size = PAGE_SIZE, i;
7269 enum nl80211_band band;
7370 struct ieee80211_supported_band *sband;
71
+ ssize_t r;
7472
7573 buf = kzalloc(buf_size, GFP_KERNEL);
7674 if (!buf)