mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 06:36:43 +07:00
[media] mantis: cleanup a warning
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> drivers/media/pci/mantis/mantis_i2c.c: In function 'mantis_i2c_init': drivers/media/pci/mantis/mantis_i2c.c:222:15: warning: variable 'intmask' set but not used [-Wunused-but-set-variable] u32 intstat, intmask;
This commit is contained in:
parent
82d229cde0
commit
6fe2d69c07
@ -219,7 +219,7 @@ static struct i2c_algorithm mantis_algo = {
|
||||
|
||||
int mantis_i2c_init(struct mantis_pci *mantis)
|
||||
{
|
||||
u32 intstat, intmask;
|
||||
u32 intstat;
|
||||
struct i2c_adapter *i2c_adapter = &mantis->adapter;
|
||||
struct pci_dev *pdev = mantis->pdev;
|
||||
|
||||
@ -242,7 +242,7 @@ int mantis_i2c_init(struct mantis_pci *mantis)
|
||||
dprintk(MANTIS_DEBUG, 1, "Initializing I2C ..");
|
||||
|
||||
intstat = mmread(MANTIS_INT_STAT);
|
||||
intmask = mmread(MANTIS_INT_MASK);
|
||||
mmread(MANTIS_INT_MASK);
|
||||
mmwrite(intstat, MANTIS_INT_STAT);
|
||||
dprintk(MANTIS_DEBUG, 1, "Disabling I2C interrupt");
|
||||
mantis_mask_ints(mantis, MANTIS_INT_I2CDONE);
|
||||
|
Loading…
Reference in New Issue
Block a user