staging: comedi: jr3_pci: checkpatch.pl cleanup (missing blank line)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 18:01:59 +0000 (11:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:37:19 +0000 (13:37 -0700)
Fix checkpatch.pl warnings:

WARNING: Missing a blank line after declarations

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/jr3_pci.c

index a8db9d86aadc3006aafe911460ea4acd98108b2a..7b20e19ecbf706abb85988de7e0d341a07bc1bcc 100644 (file)
@@ -196,6 +196,7 @@ static struct six_axis_t get_min_full_scales(struct jr3_channel __iomem
                                             *channel)
 {
        struct six_axis_t result;
+
        result.fx = get_s16(&channel->min_full_scale.fx);
        result.fy = get_s16(&channel->min_full_scale.fy);
        result.fz = get_s16(&channel->min_full_scale.fz);
@@ -209,6 +210,7 @@ static struct six_axis_t get_max_full_scales(struct jr3_channel __iomem
                                             *channel)
 {
        struct six_axis_t result;
+
        result.fx = get_s16(&channel->max_full_scale.fx);
        result.fy = get_s16(&channel->max_full_scale.fy);
        result.fz = get_s16(&channel->max_full_scale.fz);
@@ -319,6 +321,8 @@ static int read_idm_word(const u8 *data, size_t size, int *pos,
                         unsigned int *val)
 {
        int result = 0;
+       int value;
+
        if (pos && val) {
                /*  Skip over non hex */
                for (; *pos < size && !isxdigit(data[*pos]); (*pos)++)
@@ -326,7 +330,6 @@ static int read_idm_word(const u8 *data, size_t size, int *pos,
                /*  Collect value */
                *val = 0;
                for (; *pos < size; (*pos)++) {
-                       int value;
                        value = hex_to_bin(data[*pos]);
                        if (value >= 0) {
                                result = 1;