.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * This file is part of wl12xx |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2009 Nokia Corporation |
---|
5 | 6 | * Copyright (C) 2011-2012 Texas Instruments |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public License |
---|
9 | | - * version 2 as published by the Free Software Foundation. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, but |
---|
12 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | | - * General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License |
---|
17 | | - * along with this program; if not, write to the Free Software |
---|
18 | | - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
---|
19 | | - * 02110-1301 USA |
---|
20 | | - * |
---|
21 | 7 | */ |
---|
22 | 8 | |
---|
23 | 9 | #include "../wlcore/debugfs.h" |
---|
.. | .. |
---|
125 | 111 | int wl12xx_debugfs_add_files(struct wl1271 *wl, |
---|
126 | 112 | struct dentry *rootdir) |
---|
127 | 113 | { |
---|
128 | | - int ret = 0; |
---|
129 | | - struct dentry *entry, *stats, *moddir; |
---|
| 114 | + struct dentry *stats, *moddir; |
---|
130 | 115 | |
---|
131 | 116 | moddir = debugfs_create_dir(KBUILD_MODNAME, rootdir); |
---|
132 | | - if (!moddir || IS_ERR(moddir)) { |
---|
133 | | - entry = moddir; |
---|
134 | | - goto err; |
---|
135 | | - } |
---|
136 | | - |
---|
137 | 117 | stats = debugfs_create_dir("fw_stats", moddir); |
---|
138 | | - if (!stats || IS_ERR(stats)) { |
---|
139 | | - entry = stats; |
---|
140 | | - goto err; |
---|
141 | | - } |
---|
142 | 118 | |
---|
143 | 119 | DEBUGFS_FWSTATS_ADD(tx, internal_desc_overflow); |
---|
144 | 120 | |
---|
.. | .. |
---|
232 | 208 | DEBUGFS_FWSTATS_ADD(rxpipe, tx_xfr_host_int_trig_rx_data); |
---|
233 | 209 | |
---|
234 | 210 | return 0; |
---|
235 | | - |
---|
236 | | -err: |
---|
237 | | - if (IS_ERR(entry)) |
---|
238 | | - ret = PTR_ERR(entry); |
---|
239 | | - else |
---|
240 | | - ret = -ENOMEM; |
---|
241 | | - |
---|
242 | | - return ret; |
---|
243 | 211 | } |
---|