aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ngene
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 15:17:39 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-28 05:38:46 -0400
commit2827a4400a181437a2a3e0ccc2307f90bd204fdd (patch)
tree4d58a6bc3ed2b6612e0728b2bc61b5722310c190 /drivers/media/pci/ngene
parentba4008921ba8144ff307f10d04fe52e6d6e744dc (diff)
[media] ngene: better comment unused code to avoid warnings
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>
Diffstat (limited to 'drivers/media/pci/ngene')
-rw-r--r--drivers/media/pci/ngene/ngene-cards.c4
-rw-r--r--drivers/media/pci/ngene/ngene-core.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/pci/ngene/ngene-cards.c b/drivers/media/pci/ngene/ngene-cards.c
index 96a13ed197d0..b38bce529566 100644
--- a/drivers/media/pci/ngene/ngene-cards.c
+++ b/drivers/media/pci/ngene/ngene-cards.c
@@ -425,8 +425,10 @@ static int ReadEEProm(struct i2c_adapter *adapter,
425 status = i2c_read_eeprom(adapter, 0x50, Addr, data, Length); 425 status = i2c_read_eeprom(adapter, 0x50, Addr, data, Length);
426 if (!status) { 426 if (!status) {
427 *pLength = EETag[2]; 427 *pLength = EETag[2];
428#if 0
428 if (Length < EETag[2]) 429 if (Length < EETag[2])
429 ; /*status=STATUS_BUFFER_OVERFLOW; */ 430 status = STATUS_BUFFER_OVERFLOW;
431#endif
430 } 432 }
431 } 433 }
432 return status; 434 return status;
diff --git a/drivers/media/pci/ngene/ngene-core.c b/drivers/media/pci/ngene/ngene-core.c
index c8e0d5b99d4c..2c2df88b4a9c 100644
--- a/drivers/media/pci/ngene/ngene-core.c
+++ b/drivers/media/pci/ngene/ngene-core.c
@@ -752,8 +752,8 @@ void set_transfer(struct ngene_channel *chan, int state)
752 if (chan->mode & NGENE_IO_TSIN) 752 if (chan->mode & NGENE_IO_TSIN)
753 chan->pBufferExchange = tsin_exchange; 753 chan->pBufferExchange = tsin_exchange;
754 spin_unlock_irq(&chan->state_lock); 754 spin_unlock_irq(&chan->state_lock);
755 } else 755 }
756 ;/* printk(KERN_INFO DEVICE_NAME ": lock=%08x\n", 756 /* else printk(KERN_INFO DEVICE_NAME ": lock=%08x\n",
757 ngreadl(0x9310)); */ 757 ngreadl(0x9310)); */
758 758
759 ret = ngene_command_stream_control(dev, chan->number, 759 ret = ngene_command_stream_control(dev, chan->number,