From: H Hartley Sweeten Date: Thu, 24 Jul 2014 17:14:29 +0000 (-0700) Subject: staging: comedi: ni_tio: remove unnecessary ni_gpct_variant BUG() cases X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~266 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=856031614ef3e848f5c60b5c098d365e200d0d20;p=pandora-kernel.git staging: comedi: ni_tio: remove unnecessary ni_gpct_variant BUG() cases The enum ni_gpct_variant is used to handle hardware variations in the gpct timers handled by this driver. This enum is defined as: enum ni_gpct_variant { ni_gpct_variant_e_series, ni_gpct_variant_m_series, ni_gpct_variant_660x }; For all the switch statements where all three enum values are handled, remove the unreachable BUG(). Move the default case so it is handled the same as ni_gpct_variant_e_series. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed