]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: rtd520: remove unnecessary interrupt disable
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 20 Feb 2015 19:52:28 +0000 (12:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 02:47:39 +0000 (18:47 -0800)
commitb7d6b43b4d20cd5b8aa0e56fc1f9185837cd608a
treeae518bbb83d126d4736315eba1ad967fb7c2f9ef
parent1f5fc964866dabec6db6e7eaf8865838b1436a8e
staging: comedi: rtd520: remove unnecessary interrupt disable

The read/write of the PLX_INTRCS_REG during the driver detach is not
necessary. The rtd_reset() function writes 0 to this register which
will disable all interrupts.

This also fixes a dereference after null check reported by coverity.

Reported-by: coverity (CID 751066)
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/rtd520.c