1
0
Fork 0

staging: gdm72xx: Fix bogus test

Test the return as we should

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=46921
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Alan Cox 2012-09-04 16:04:36 +01:00 committed by Greg Kroah-Hartman
parent 07ad99c9e3
commit f1efd9fe08
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ static int sdio_wimax_probe(struct sdio_func *func,
phy_dev->rcv_func = gdm_sdio_receive;
ret = init_sdio(sdev);
if (sdev < 0)
if (ret < 0)
goto out;
sdev->func = func;