media: dib7000p: Remove dead code
authorSean Young <sean@mess.org>
Tue, 4 Dec 2018 09:59:10 +0000 (04:59 -0500)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Tue, 11 Jun 2019 00:35:54 +0000 (09:35 +0900)
commit73bde2a83f27514ed61dc9c7213edf4690bb3a59
treefd824fe03af2cdd7f31cc94e9bb4c3e9b3e5f622
parent0d2b70666571ca80a0e01eb9d44840da2d27349d
media: dib7000p: Remove dead code

Clang warns that 'interleaving' is assigned to itself in this function.

drivers/media/dvb-frontends/dib7000p.c:1874:15: warning: explicitly
assigning value of variable of type 'int' to itself [-Wself-assign]
        interleaving = interleaving;
        ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
1 warning generated.

Just remove the self-assign and leave existing code in place for now.

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Suggested-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
[sw0312.kim: cherry-pick mainline commit d95947c05eaf to remove llvm/clang build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I3e34832e3b095fdedbf1ee7557be66370726bf85
drivers/media/dvb-frontends/dib7000p.c