From: Sven Luthi <dev@svenluthi.com>
To: gregkh@linuxfoundation.org
Cc: abbotti@mev.co.uk, hsweeten@visionengravers.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] staging: comedi: drivers: dt3000: Fixes warning on multiline dereference.
Date: Fri, 24 Aug 2018 23:06:57 +0200 [thread overview]
Message-ID: <20180824210657.16926-2-dev@svenluthi.com> (raw)
In-Reply-To: <20180824210657.16926-1-dev@svenluthi.com>
Checkpatch complains about a pointer dereference
on line 442-444 being split across multiple lines.
Merged the pointer dereference into one line and moved it
along with the other function call parameters onto the following
line so it would fit without exceeding the 80 character line limit.
Signed-off-by: Sven Luthi <dev@svenluthi.com>
---
drivers/staging/comedi/drivers/dt3000.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/comedi/drivers/dt3000.c b/drivers/staging/comedi/drivers/dt3000.c
index 2edf3ee91300..b3b5fe707659 100644
--- a/drivers/staging/comedi/drivers/dt3000.c
+++ b/drivers/staging/comedi/drivers/dt3000.c
@@ -439,9 +439,8 @@ static int dt3k_ai_cmdtest(struct comedi_device *dev,
if (cmd->scan_begin_src == TRIG_TIMER) {
arg = cmd->convert_arg * cmd->scan_end_arg;
- err |= comedi_check_trigger_arg_min(&cmd->
- scan_begin_arg,
- arg);
+ err |= comedi_check_trigger_arg_min
+ (&cmd->scan_begin_arg, arg);
}
}
--
2.14.1
next prev parent reply other threads:[~2018-08-24 21:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-24 21:06 [PATCH] staging: comedi: drivers: adl_pci9118: Fixes format of line 1283 Sven Luthi
2018-08-24 21:06 ` Sven Luthi [this message]
2018-08-25 7:14 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180824210657.16926-2-dev@svenluthi.com \
--to=dev@svenluthi.com \
--cc=abbotti@mev.co.uk \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox