From: Alan Cox Date: Tue, 4 Sep 2012 15:04:36 +0000 (+0100) Subject: staging: gdm72xx: Fix bogus test X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f1efd9fe08a9ada843cd99f949a130555df045bd;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;