| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * cfg80211 debugfs |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2009 Luis R. Rodriguez <lrodriguez@atheros.com> |
|---|
| 5 | 6 | * 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. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 68 | 65 | { |
|---|
| 69 | 66 | struct wiphy *wiphy = file->private_data; |
|---|
| 70 | 67 | char *buf; |
|---|
| 71 | | - unsigned int offset = 0, buf_size = PAGE_SIZE, i, r; |
|---|
| 68 | + unsigned int offset = 0, buf_size = PAGE_SIZE, i; |
|---|
| 72 | 69 | enum nl80211_band band; |
|---|
| 73 | 70 | struct ieee80211_supported_band *sband; |
|---|
| 71 | + ssize_t r; |
|---|
| 74 | 72 | |
|---|
| 75 | 73 | buf = kzalloc(buf_size, GFP_KERNEL); |
|---|
| 76 | 74 | if (!buf) |
|---|