| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | Driver for the Marvell 8385 based compact flash WLAN cards. |
|---|
| 4 | 5 | |
|---|
| 5 | 6 | (C) 2007 by Holger Schurig <hs4233@mail.mn-solutions.de> |
|---|
| 6 | 7 | |
|---|
| 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. |
|---|
| 21 | 8 | |
|---|
| 22 | 9 | */ |
|---|
| 23 | 10 | |
|---|
| .. | .. |
|---|
| 900 | 887 | |
|---|
| 901 | 888 | /* Make this card known to the libertas driver */ |
|---|
| 902 | 889 | priv = lbs_add_card(card, &p_dev->dev); |
|---|
| 903 | | - if (!priv) { |
|---|
| 904 | | - ret = -ENOMEM; |
|---|
| 890 | + if (IS_ERR(priv)) { |
|---|
| 891 | + ret = PTR_ERR(priv); |
|---|
| 905 | 892 | goto out2; |
|---|
| 906 | 893 | } |
|---|
| 907 | 894 | |
|---|