]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: serial2002: Fix unnecessary cast styling issue
authorChris Cesare <chris.cesare@gmail.com>
Thu, 9 Jun 2016 19:39:03 +0000 (15:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Jun 2016 04:14:16 +0000 (21:14 -0700)
commit6ee84aaaa9d7b3d80ed98ec0b92894a7beb0a30b
treebb62aa568a53f364acbb035ba3c20d0d02269617
parent2cbbca99dcb0140088902071979b0de94a685cf3
staging: comedi: serial2002: Fix unnecessary cast styling issue

checkpatch.pl warns that a cast of 1 to (long long) is unnecessary.
Remove the cast and also add code to check and make sure that
maxdata_list[chan] is not shifted too far, as suggested by Ian
Abbott.

Signed-off-by Chris Cesare <chris.cesare@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/serial2002.c