Skip to content

Commit

Permalink
[media] ngene: better comment unused code to avoid warnings
Browse files Browse the repository at this point in the history
get rid of a few warnings about empty body:
drivers/media/pci/ngene/ngene-core.c:756:3: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
drivers/media/pci/ngene/ngene-cards.c:429:5: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
Those are due to some commented code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent ba40089 commit 2827a44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion drivers/media/pci/ngene/ngene-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,10 @@ static int ReadEEProm(struct i2c_adapter *adapter,
status = i2c_read_eeprom(adapter, 0x50, Addr, data, Length);
if (!status) {
*pLength = EETag[2];
#if 0
if (Length < EETag[2])
; /*status=STATUS_BUFFER_OVERFLOW; */
status = STATUS_BUFFER_OVERFLOW;
#endif
}
}
return status;
Expand Down
4 changes: 2 additions & 2 deletions drivers/media/pci/ngene/ngene-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,8 @@ void set_transfer(struct ngene_channel *chan, int state)
if (chan->mode & NGENE_IO_TSIN)
chan->pBufferExchange = tsin_exchange;
spin_unlock_irq(&chan->state_lock);
} else
;/* printk(KERN_INFO DEVICE_NAME ": lock=%08x\n",
}
/* else printk(KERN_INFO DEVICE_NAME ": lock=%08x\n",
ngreadl(0x9310)); */

ret = ngene_command_stream_control(dev, chan->number,
Expand Down

0 comments on commit 2827a44

Please sign in to comment.