[PATCH v2 1/2] staging: comedi: serial2002: Fix bare unsigned styling issue

2016-06-09 Thread Chris Cesare
checkpatch.pl warns about a bare unsigned. Add type int to make explicit and suit the coding style. Signed-off-by Chris Cesare <chris.ces...@gmail.com> --- drivers/staging/comedi/drivers/serial2002.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/

[PATCH v2 2/2] staging: comedi: serial2002: Fix unnecessary cast styling issue

2016-06-09 Thread Chris Cesare
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.ces...@gmail.com> --- drivers/staging/comedi/d

[PATCH v2 0/2] staging: comedi: serial2002: Fix two styling issues

2016-06-09 Thread Chris Cesare
checkpatch.pl warns about a bare unsigned and an unnecessary cast. Patchset splits fixes for these into two separate patches. Chris Cesare (2): staging: comedi: serial2002: Fix bare unsigned styling issue staging: comedi: serial2002: Fix unnecessary cast styling issue drivers/staging/comedi

[PATCH] staging: comedi: serial2002: bare unsigned and unneeded cast styling issues

2016-06-08 Thread Chris Cesare
checkpatch.pl reported two warnings: A bare "unsigned" and an unnecessary cast. Fixed both. Signed-off-by: Chris Cesare <chris.ces...@gmail.com> --- drivers/staging/comedi/drivers/serial2002.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/stagin