Skip to content

Commit

Permalink
staging/ft1000: fix the no brace needed warning in ft1000_interrupt
Browse files Browse the repository at this point in the history
as the if statement encloses only one line braces around it are not
needed.

The following warn fixed,
WARNING: braces {} are not necessary for single statement blocks

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 9e76b9d commit 64cab4e
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 @@ -1998,9 +1998,8 @@ static irqreturn_t ft1000_interrupt(int irq, void *dev_id)

// Make sure we process all interrupt before leaving the ISR due to the edge trigger interrupt type
while (inttype) {
if (inttype & ISR_DOORBELL_PEND) {
ft1000_parse_dpram_msg(dev);
}
if (inttype & ISR_DOORBELL_PEND)
ft1000_parse_dpram_msg(dev);

if (inttype & ISR_RCV) {
DEBUG(1, "Data in FIFO\n");
Expand Down

0 comments on commit 64cab4e

Please sign in to comment.