From: Alan Cox Date: Tue, 4 Sep 2012 15:04:36 +0000 (+0100) Subject: staging: gdm72xx: Fix bogus test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1efd9fe08a9ada843cd99f949a130555df045bd;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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;