From: Andrey Utkin Date: Thu, 10 Jul 2014 12:32:25 +0000 (-0300) Subject: [media] media: pvrusb2: make logging code sane X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~278 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=599bc36a79dc03c18360d9b5bc08c18a6dde323e;p=pandora-kernel.git [media] media: pvrusb2: make logging code sane The issue was discovered by static analysis. It turns out that code is somewhat insane, being if (x) {...} else { if (x) {...} } Edited it to do the only reasonable thing, which is to log the information about the failed call. The most descriptive logging commands set is taken from original code. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=79801 Reported-by: David Binderman Signed-off-by: Andrey Utkin Acked-by: Mike Isely Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed