Commit 2827a440 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ba400892
...@@ -425,8 +425,10 @@ static int ReadEEProm(struct i2c_adapter *adapter, ...@@ -425,8 +425,10 @@ static int ReadEEProm(struct i2c_adapter *adapter,
status = i2c_read_eeprom(adapter, 0x50, Addr, data, Length); status = i2c_read_eeprom(adapter, 0x50, Addr, data, Length);
if (!status) { if (!status) {
*pLength = EETag[2]; *pLength = EETag[2];
#if 0
if (Length < EETag[2]) if (Length < EETag[2])
; /*status=STATUS_BUFFER_OVERFLOW; */ status = STATUS_BUFFER_OVERFLOW;
#endif
} }
} }
return status; return status;
......
...@@ -752,8 +752,8 @@ void set_transfer(struct ngene_channel *chan, int state) ...@@ -752,8 +752,8 @@ void set_transfer(struct ngene_channel *chan, int state)
if (chan->mode & NGENE_IO_TSIN) if (chan->mode & NGENE_IO_TSIN)
chan->pBufferExchange = tsin_exchange; chan->pBufferExchange = tsin_exchange;
spin_unlock_irq(&chan->state_lock); 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)); */ ngreadl(0x9310)); */
ret = ngene_command_stream_control(dev, chan->number, ret = ngene_command_stream_control(dev, chan->number,
......
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