Skip to content

Commit

Permalink
staging/ft1000: fix the no brace needed warning in ft1000_read_fifo_len
Browse files Browse the repository at this point in the history
as the if else statements enclose only one line, so braces around them are not
needed.

The following warning is fixed

drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c:100: WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jul 9, 2012
1 parent 3bc2311 commit b3a87c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@ static inline u16 ft1000_read_fifo_len(struct net_device *dev)
{
struct ft1000_info *info = netdev_priv(dev);

if (info->AsicID == ELECTRABUZZ_ID) {
if (info->AsicID == ELECTRABUZZ_ID)
return (ft1000_read_reg(dev, FT1000_REG_UFIFO_STAT) - 16);
} else {
else
return (ft1000_read_reg(dev, FT1000_REG_MAG_UFSR) - 16);
}
}

//---------------------------------------------------------------------------
Expand Down

0 comments on commit b3a87c3

Please sign in to comment.