]> git.karo-electronics.de Git - linux-beck.git/commit
[media] stv0900_core: don't allocate a temporary var
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 18:11:54 +0000 (15:11 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:13 +0000 (17:59 -0300)
commit49bc89623d4f7d7c5540083622459122e0ad2312
treebe177f629fd93ce86bf870fcf2b5f3a675772492
parentc611c908bb389b700501d028644b9feb8faa20f7
[media] stv0900_core: don't allocate a temporary var

The error return code STV0900_NO_ERROR happens only once, at
the end of the functions. So, just return it directly.

This driver should actually be fixed to return standard
Linux error codes, instead of its own macros, but this
should be done on a separate patchset.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/stv0900_core.c