media: dvb-frontends: lgdt3306a.c: remove dead code
authorDaniel W. S. Almeida <dwlsalmeida@gmail.com>
Thu, 3 Sep 2020 13:13:09 +0000 (15:13 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Mar 2021 16:15:53 +0000 (17:15 +0100)
commitd4a3fa6652e3f617bd4cfe3fef99f25a84ffa2ca
tree03aec07ce75041b4899c4b9bedd5fda70ab27dfe
parent6045b01dd0e3cd3759eafe7f290ed04c957500b1
media: dvb-frontends: lgdt3306a.c: remove dead code

Fix the following coccinelle report:

drivers/media/dvb-frontends/lgdt3306a.c:718:5-8:
Unneeded variable: "ret". Return "0" on line 744

Code was enclosed with #if 0 and thus this variable was not needed.
Remove that function altogether.

The  lgdt3306a_spectral_inversion function was dropped completely
since the function doesn't do anything. A comment was left at its
calling site to let others know that spectral_inversion defaults
already set for VSB and QAM

Found using - Coccinelle (http://coccinelle.lip6.fr)

Link: https://lore.kernel.org/linux-media/20200903131311.442255-1-dwlsalmeida@gmail.com
Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-frontends/lgdt3306a.c