forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/marvell/libertas/if_cs.c
....@@ -1,23 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23
34 Driver for the Marvell 8385 based compact flash WLAN cards.
45
56 (C) 2007 by Holger Schurig <hs4233@mail.mn-solutions.de>
67
7
- This program is free software; you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation; either version 2 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program; see the file COPYING. If not, write to
19
- the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
20
- Boston, MA 02110-1301, USA.
218
229 */
2310
....@@ -900,8 +887,8 @@
900887
901888 /* Make this card known to the libertas driver */
902889 priv = lbs_add_card(card, &p_dev->dev);
903
- if (!priv) {
904
- ret = -ENOMEM;
890
+ if (IS_ERR(priv)) {
891
+ ret = PTR_ERR(priv);
905892 goto out2;
906893 }
907894