From: Alan Cox Date: Tue, 4 Sep 2012 15:04:36 +0000 (+0100) Subject: staging: gdm72xx: Fix bogus test X-Git-Tag: v3.7-rc1~173^2~854 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f1efd9fe08a9ada843cd99f949a130555df045bd;p=~emulex%2Finfiniband.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 ec64d94cd68..f8242902ada 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;