]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx24117: remove dead code in always 'false' if statement
authorAndi Shyti <andi@etezian.org>
Thu, 30 Jan 2014 03:05:01 +0000 (00:05 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 4 Feb 2014 08:35:26 +0000 (06:35 -0200)
commit045f789c70b88645f207c5f5f857e434ec49e964
tree907d3962ed4cf3d0d0a9c5e1661a56ce6ee9a421
parent6e905ff6a906c00a0463035e8523da129ab03f8b
[media] cx24117: remove dead code in always 'false' if statement

At this point of the execution in the function cx24117_attach()
demod cannot be '0'. In that case the function returns earlier
with an error value ('NULL'). Remove the if statement.

This error has been reported by scan.coverity.com

Signed-off-by: Andi Shyti <andi@etezian.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/cx24117.c