]> git.baikalelectronics.ru Git - kernel.git/commit
vgaarb: remove bogus checks
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 Nov 2015 04:24:14 +0000 (23:24 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Dec 2015 02:17:17 +0000 (21:17 -0500)
commit75141cd81bb63e436910cbf45fd1638c27a888ea
tree1dbe865d4acf7444b04a99376cb445a52d4a9c41
parentebe41ee8683ce337c3db1d324c1094cfd32d1e0c
vgaarb: remove bogus checks

neither ->release() nor ->poll() can be called unless ->open()
has succeeded on the same struct file, so checking for "has
open() failed" is pointless.  What's more, ->poll() doesn't
return -E... - it always returns a bitmap of POLL... values,
so the dead code in that one had been actively bogus.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/gpu/vga/vgaarb.c