Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd9da617 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: jr3_pci: checkpatch.pl cleanup (missing blank line)



Fix checkpatch.pl warnings:

WARNING: Missing a blank line after declarations

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 98039f8a
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -196,6 +196,7 @@ static struct six_axis_t get_min_full_scales(struct jr3_channel __iomem
					     *channel)
					     *channel)
{
{
	struct six_axis_t result;
	struct six_axis_t result;

	result.fx = get_s16(&channel->min_full_scale.fx);
	result.fx = get_s16(&channel->min_full_scale.fx);
	result.fy = get_s16(&channel->min_full_scale.fy);
	result.fy = get_s16(&channel->min_full_scale.fy);
	result.fz = get_s16(&channel->min_full_scale.fz);
	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)
					     *channel)
{
{
	struct six_axis_t result;
	struct six_axis_t result;

	result.fx = get_s16(&channel->max_full_scale.fx);
	result.fx = get_s16(&channel->max_full_scale.fx);
	result.fy = get_s16(&channel->max_full_scale.fy);
	result.fy = get_s16(&channel->max_full_scale.fy);
	result.fz = get_s16(&channel->max_full_scale.fz);
	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)
			 unsigned int *val)
{
{
	int result = 0;
	int result = 0;
	int value;

	if (pos && val) {
	if (pos && val) {
		/*  Skip over non hex */
		/*  Skip over non hex */
		for (; *pos < size && !isxdigit(data[*pos]); (*pos)++)
		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 */
		/*  Collect value */
		*val = 0;
		*val = 0;
		for (; *pos < size; (*pos)++) {
		for (; *pos < size; (*pos)++) {
			int value;
			value = hex_to_bin(data[*pos]);
			value = hex_to_bin(data[*pos]);
			if (value >= 0) {
			if (value >= 0) {
				result = 1;
				result = 1;