staging: comedi: das16: remove an unnecessary check in the attach
commit3ffb03e62a12d82f7ce1b1aaa471f780e2e42743
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 29 Jul 2013 21:07:30 +0000 (29 14:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 00:38:09 +0000 (31 17:38 -0700)
tree891171c9a56676357daeb6e35519152544c23ed1
parentcb09d912e29605bc5a7bc6a204dda8c8f01cf10d
staging: comedi: das16: remove an unnecessary check in the attach

If the user does not specify the analog output range the private data
'user_ao_range_table' will not be allocated. The comedi core will detect
the NULL s->range_table and automatically set it to &range_unknown.

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/das16.c