[media] cx25840: fix return logic when media entity init fails
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Feb 2015 19:47:07 +0000 (16:47 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 26 Feb 2015 11:45:42 +0000 (08:45 -0300)
There's no need to free state, as it was allocated via devm_kzalloc().

Also, let's return the error code, instead of something else.

Reported-by: Prabhakar Lad <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/cx25840/cx25840-core.c