media: dib7000p: Remove dead code
authorSean Young <sean@mess.org>
Tue, 4 Dec 2018 09:59:10 +0000 (04:59 -0500)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 4 Nov 2019 09:00:55 +0000 (18:00 +0900)
commitd443ca6efe50eec90f0aa7e49b9c3bbd029c0cd0
treeb741b4b10c3fc6578320ada6523fbe11a004f6db
parentef40acd3558dd07555741f624b0dd240b7b42927
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