[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)
commitdb749359059f3049fc5c66950e5ca85f67d7c1b0
tree05192a5286c39166540174b34a0f969a214d0999
parent3d263114c4b75d06253f0ed8059164dbc70c9f0c
[media] cx25840: fix return logic when media entity init fails

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
This page took 0.027299 seconds and 5 git commands to generate.