From: Hans de Goede Date: Mon, 6 Jun 2011 18:25:18 +0000 (-0300) Subject: [media] pwc: Remove a bunch of bogus sanity checks / don't return EFAULT wrongly X-Git-Tag: v3.1-rc1~116^2~168 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c246412117d871a3a90cd4e8ba2c6dea18a59f71;p=pandora-kernel.git [media] pwc: Remove a bunch of bogus sanity checks / don't return EFAULT wrongly The chances if any of these becoming NULL magically are 0% And if they do become NULL oopsing is the right thing to do (so that the user logs a bug with the kernel rather then with whatever app he was using). Returning EFAULT to userspace should only be done when userspace supplies a bad address, not on driver bugs / hw issues, so in the few cases where the check is not bogus return something else. Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed