From 599bc36a79dc03c18360d9b5bc08c18a6dde323e Mon Sep 17 00:00:00 2001 From: Andrey Utkin Date: Thu, 10 Jul 2014 09:32:25 -0300 Subject: [PATCH] [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-format-patch failed