From: H Hartley Sweeten Date: Mon, 10 Aug 2015 20:14:03 +0000 (-0700) Subject: staging: comedi: comedi_fops: remove remaining BUG_ON() checks X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~106 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bb6419ccf5b2548ade321d5337e9d3252a3d4a1;p=pandora-kernel.git staging: comedi: comedi_fops: remove remaining BUG_ON() checks The BUG_ON() checks in comedi_subdevice_from_minor() and comedi_dev_get_from_subdevice_minor() are not necessary. The 'minor' numbers for a given comedi driver are setup by comedi_dev_get_from_subdevice_minor() and will always be in the correct range. Drivers should not crash the kernel, remove the BUG_ON() checks. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed