From: Mauro Carvalho Chehab Date: Thu, 19 Feb 2015 19:47:07 +0000 (-0300) Subject: [media] cx25840: fix return logic when media entity init fails X-Git-Tag: omap-for-v4.1/fixes-rc1~72^2~1^2~368 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db749359059f3049fc5c66950e5ca85f67d7c1b0;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed