staging: ft1000: ft1000-pcmcia: Removed all useless "else"

Removed all else keywords that used after break or return. Removed following checkpatch.pl warnings:
WARNING: else is not generally useful after a break or return

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Gulsah Kose 2015-02-22 03:52:00 +02:00 committed by Greg Kroah-Hartman
parent fe146473ca
commit eeca3458e6
1 changed files with 154 additions and 157 deletions

View File

@ -459,9 +459,8 @@ static int ft1000_reset_card(struct net_device *dev)
if (card_download(dev, fw_entry->data, fw_entry->size)) {
pr_debug("card download unsuccessful\n");
return false;
} else {
pr_debug("card download successful\n");
}
pr_debug("card download successful\n");
mdelay(10);
@ -860,7 +859,7 @@ static bool ft1000_receive_cmd(struct net_device *dev, u16 *pbuffer,
if (size > maxsz) {
pr_debug("Invalid command length = %d\n", size);
return false;
} else {
}
ppseudohdr = (u16 *)pbuffer;
spin_lock_irqsave(&info->dpram_lock, flags);
if (info->AsicID == ELECTRABUZZ_ID) {
@ -918,7 +917,6 @@ static bool ft1000_receive_cmd(struct net_device *dev, u16 *pbuffer,
}
return true;
}
}
/*---------------------------------------------------------------------------
@ -1400,7 +1398,7 @@ static void ft1000_flush_fifo(struct net_device *dev, u16 DrvErrNum)
info->DrvErrNum = DrvErrNum;
ft1000_reset_card(dev);
return;
} else {
}
/* Flush corrupted pkt from FIFO */
i = 0;
do {
@ -1499,7 +1497,6 @@ static void ft1000_flush_fifo(struct net_device *dev, u16 DrvErrNum)
if (DrvErrNum)
pcmcia->PktIntfErr++;
}
}
/*---------------------------------------------------------------------------