Skip to content

Commit

Permalink
libertas: remove some dead code in if_spi_prog_helper_firmware()
Browse files Browse the repository at this point in the history
We always hit the goto and skip the printk().  The original code does
the right thing even though it looks messy.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Aug 9, 2011
1 parent abc1199 commit 8888fb4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/wireless/libertas/if_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,6 @@ static int if_spi_prog_helper_firmware(struct if_spi_card *card,
goto out;
err = spu_write_u16(card, IF_SPI_CARD_INT_CAUSE_REG,
IF_SPI_CIC_CMD_DOWNLOAD_OVER);
goto out;

lbs_deb_spi("waiting for helper to boot...\n");

out:
if (err)
pr_err("failed to load helper firmware (err=%d)\n", err);
Expand Down

0 comments on commit 8888fb4

Please sign in to comment.