From: H Hartley Sweeten Date: Wed, 19 Dec 2012 22:39:44 +0000 (-0700) Subject: staging: comedi: comedi_fops: cleanup comedi_poll() X-Git-Tag: v3.9-rc1~127^2~529 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca081b1d7e2f355b54a6fa1e63f84b8ceb9597de;p=pandora-kernel.git staging: comedi: comedi_fops: cleanup comedi_poll() Consolidate the local variables 'read_subdev' and 'write_subdev' into a single local variable 's'. Use comedi_dev_from_minor() to simplify the return -ENODEV tests. Use a goto in the !dev->attached test so that the mutex_unlock() call is in a common place. Cleanup the formating of the || in the read and write subdevice poll code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed