[media] ngene: fix compile warning
drivers/media/dvb/ngene/ngene-core.c: In function 'ngene_start': drivers/media/dvb/ngene/ngene-core.c:1308:16: warning: unused variable 'flags' Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
9d1da730ee
commit
4f77b86c66
|
@ -1304,7 +1304,6 @@ static void ngene_stop(struct ngene *dev)
|
|||
static int ngene_start(struct ngene *dev)
|
||||
{
|
||||
int stat;
|
||||
unsigned long flags;
|
||||
int i;
|
||||
|
||||
pci_set_master(dev->pci_dev);
|
||||
|
@ -1337,6 +1336,8 @@ static int ngene_start(struct ngene *dev)
|
|||
#ifdef CONFIG_PCI_MSI
|
||||
/* enable MSI if kernel and card support it */
|
||||
if (pci_msi_enabled() && dev->card_info->msi_supported) {
|
||||
unsigned long flags;
|
||||
|
||||
ngwritel(0, NGENE_INT_ENABLE);
|
||||
free_irq(dev->pci_dev->irq, dev);
|
||||
stat = pci_enable_msi(dev->pci_dev);
|
||||
|
|
Loading…
Reference in a new issue