Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] media: pci: mantis: mantis_core.c: Remove unused function

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>

authored by

Rickard Strandqvist and committed by
Mauro Carvalho Chehab
df584331 05a2ea78

-23
-23
drivers/media/pci/mantis/mantis_core.c
··· 56 56 return 0; 57 57 } 58 58 59 - static int write_eeprom_byte(struct mantis_pci *mantis, u8 *data, u8 length) 60 - { 61 - int err; 62 - 63 - struct i2c_msg msg = { 64 - .addr = 0x50, 65 - .flags = 0, 66 - .buf = data, 67 - .len = length 68 - }; 69 - 70 - err = i2c_transfer(&mantis->adapter, &msg, 1); 71 - if (err < 0) { 72 - dprintk(verbose, MANTIS_ERROR, 1, 73 - "ERROR: i2c write: < err=%i length=0x%02x d0=0x%02x, d1=0x%02x >", 74 - err, length, data[0], data[1]); 75 - 76 - return err; 77 - } 78 - 79 - return 0; 80 - } 81 - 82 59 static int get_mac_address(struct mantis_pci *mantis) 83 60 { 84 61 int err;