Skip to content

Commit

Permalink
staging: gdm72xx: Fix bogus test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 07ad99c commit f1efd9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/gdm72xx/gdm_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f1efd9f

Please sign in to comment.