summaryrefslogtreecommitdiff
path: root/drivers/staging/gdm72xx
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-09-04 19:04:36 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-04 22:16:22 +0400
commitf1efd9fe08a9ada843cd99f949a130555df045bd (patch)
treef36d79e5ac081e7b9686ca2bf041e960d37fbc33 /drivers/staging/gdm72xx
parent07ad99c9e32173852997523eb920950902563941 (diff)
downloadlinux-f1efd9fe08a9ada843cd99f949a130555df045bd.tar.xz
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>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r--drivers/staging/gdm72xx/gdm_sdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm72xx/gdm_sdio.c b/drivers/staging/gdm72xx/gdm_sdio.c
index ec64d94cd68c..f8242902ada6 100644
--- a/drivers/staging/gdm72xx/gdm_sdio.c
+++ b/drivers/staging/gdm72xx/gdm_sdio.c
@@ -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;