[media] media: pci: mantis: mantis_core.c: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Thu, 1 Jan 2015 16:55:01 +0000 (13:55 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 27 Jan 2015 12:10:06 +0000 (10:10 -0200)
Remove the function write_eeprom_byte() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/mantis/mantis_core.c

index 684d9061fe2aced0c817a6c1191c1226be5aa3d5..82220ea72dd35c4ecc2e96aa205f79f6235f4287 100644 (file)
@@ -56,29 +56,6 @@ static int read_eeprom_byte(struct mantis_pci *mantis, u8 *data, u8 length)
        return 0;
 }
 
-static int write_eeprom_byte(struct mantis_pci *mantis, u8 *data, u8 length)
-{
-       int err;
-
-       struct i2c_msg msg = {
-               .addr = 0x50,
-               .flags = 0,
-               .buf = data,
-               .len = length
-       };
-
-       err = i2c_transfer(&mantis->adapter, &msg, 1);
-       if (err < 0) {
-               dprintk(verbose, MANTIS_ERROR, 1,
-                       "ERROR: i2c write: < err=%i length=0x%02x d0=0x%02x, d1=0x%02x >",
-                       err, length, data[0], data[1]);
-
-               return err;
-       }
-
-       return 0;
-}
-
 static int get_mac_address(struct mantis_pci *mantis)
 {
        int err;