[media] drx-j: Fix usage of drxj_close()
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 9 Mar 2014 13:33:54 +0000 (10:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 10:37:17 +0000 (07:37 -0300)
commit1e5ec31a462f6d02aba57dbdb9119478943fc2e8
tree920e8870fa45cffe9f1586788027e691ec70735e
parent01473146394f28735778aefaf9faae109d6ee5f2
[media] drx-j: Fix usage of drxj_close()

This function is currently not used. However, it was meant to
be called at device release. So, add it there.

While here, remove the bad check, as reported by Dan, as
smatch warning:
drivers/media/dvb-frontends/drx39xyj/drxj.c:20041 drxj_close() warn: variable dereferenced before check 'demod' (see line 20036)

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/drx39xyj/drxj.c