staging: gdm72xx: Fix bogus test
authorAlan Cox <alan@linux.intel.com>
Tue, 4 Sep 2012 15:04:36 +0000 (16:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 18:16:22 +0000 (11:16 -0700)
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>
drivers/staging/gdm72xx/gdm_sdio.c

index ec64d94cd68cd362b84122296cb5fee09583f0ed..f8242902ada6c7f6a9d08461e33ed37a8477f0bd 100644 (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;