]> git.karo-electronics.de Git - linux-beck.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)
commitc9b0f2b63f47ec35ca5e6588df488bb7e51efb43
treebb62aa568a53f364acbb035ba3c20d0d02269617
parent2e3d417c02ceadd7feea0b34b37a36a1ffda96f1
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