Commit eeca3458 authored by Gulsah Kose's avatar Gulsah Kose Committed by Greg Kroah-Hartman

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: default avatarGulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fe146473
......@@ -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) {
......@@ -917,7 +916,6 @@ static bool ft1000_receive_cmd(struct net_device *dev, u16 *pbuffer,
return false;
}
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 {
......@@ -1498,7 +1496,6 @@ static void ft1000_flush_fifo(struct net_device *dev, u16 DrvErrNum)
}
if (DrvErrNum)
pcmcia->PktIntfErr++;
}
}
/*---------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment