media: ngene: cleanup superfluous I2C adapter evaluation
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 22 Apr 2018 16:06:51 +0000 (12:06 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 5 May 2018 13:42:40 +0000 (09:42 -0400)
commit62208c5703b166681aa590b122263a026d4f9471
tree7c5350061e1b7137febda0a46bb8ae1de2343021
parent078ce0be8945b9e2530f2e0ce84c8dcbb154edb6
media: ngene: cleanup superfluous I2C adapter evaluation

Commit ee93340e98bc ("media: ngene: deduplicate I2C adapter evaluation")
added a helper to evaluate the I2C adapter to be used for demod/tuner
attachment based on the given ngene_channel, and that helper is used in
many attach functions to initialise the i2c_adapter variable. However,
for some reason in tuner_attach_stv6110() and demod_attach_stv0900(), the
adapter evaluation wasn't removed as in all other functions. Fix (or
finalize, even) the helper use by cleaning up the superfluous I2C adapter
evaluation leftover in these two functions.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/ngene/ngene-cards.c