| .. | .. |
|---|
| 1 | | -/* This program is free software; you can redistribute it and/or modify |
|---|
| 2 | | - * it under the terms of the GNU General Public License version 2 |
|---|
| 3 | | - * as published by the Free Software Foundation. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 6 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 7 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 8 | | - * GNU General Public License for more details. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 2 | +/* |
|---|
| 9 | 3 | * |
|---|
| 10 | 4 | * Authors: |
|---|
| 11 | 5 | * (C) 2015 Pengutronix, Alexander Aring <aar@pengutronix.de> |
|---|
| .. | .. |
|---|
| 48 | 42 | if (ret < 0) |
|---|
| 49 | 43 | return ret; |
|---|
| 50 | 44 | |
|---|
| 51 | | - ret = lowpan_dev_debugfs_init(dev); |
|---|
| 52 | | - if (ret < 0) |
|---|
| 53 | | - unregister_netdevice(dev); |
|---|
| 45 | + lowpan_dev_debugfs_init(dev); |
|---|
| 54 | 46 | |
|---|
| 55 | 47 | return ret; |
|---|
| 56 | 48 | } |
|---|
| .. | .. |
|---|
| 158 | 150 | { |
|---|
| 159 | 151 | int ret; |
|---|
| 160 | 152 | |
|---|
| 161 | | - ret = lowpan_debugfs_init(); |
|---|
| 162 | | - if (ret < 0) |
|---|
| 163 | | - return ret; |
|---|
| 153 | + lowpan_debugfs_init(); |
|---|
| 164 | 154 | |
|---|
| 165 | 155 | ret = register_netdevice_notifier(&lowpan_notifier); |
|---|
| 166 | 156 | if (ret < 0) { |
|---|