From: Dan Carpenter Date: Sat, 6 Aug 2011 14:23:44 +0000 (-0700) Subject: libertas: remove some dead code in if_spi_prog_helper_firmware() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8888fb4d265ba20b322edbc944b7b2a43ef5a9e6;p=linux-beck.git libertas: remove some dead code in if_spi_prog_helper_firmware() 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c index e0286cfbc91d..622ae6de0d8b 100644 --- a/drivers/net/wireless/libertas/if_spi.c +++ b/drivers/net/wireless/libertas/if_spi.c @@ -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);