From: Dan Carpenter <dan.carpenter@oracle.com>
To: Tomas Marek <marek_tomas@centrum.cz>
Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: pi433: fix brace coding style issues in pi433_if.c
Date: Mon, 4 Dec 2017 12:32:02 +0300 [thread overview]
Message-ID: <20171204093202.7qeknrmhvzwcln52@mwanda> (raw)
In-Reply-To: <1512248720-17157-1-git-send-email-marek_tomas@centrum.cz>
On Sat, Dec 02, 2017 at 10:05:20PM +0100, Tomas Marek wrote:
> @@ -578,13 +546,9 @@ static irqreturn_t DIO1_irq_handler(int irq, void *dev_id)
> SET_CHECKED(rf69_set_mode(spi, standby)); /* this clears the fifo */
> SET_CHECKED(rf69_set_fifo_threshold(spi, FIFO_THRESHOLD));
> if (tx_cfg.enable_length_byte == optionOn)
> - {
> SET_CHECKED(rf69_set_payload_length(spi, size * tx_cfg.repetitions));
> - }
> else
> - {
> SET_CHECKED(rf69_set_payload_length(spi, 0));
> - }
>
You can't delete the curly braces here because SET_CHECKED() is utter
garbage. SET_CHECKED() needs to be wrapped in a do-while(0) loop. But
someone sent a patch to delete it entirely which is even better.
regards,
dan carpenter
next prev parent reply other threads:[~2017-12-04 11:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-02 21:05 Tomas Marek
2017-12-02 21:50 ` Joe Perches
2017-12-03 9:27 ` Marek Tomas
2017-12-04 9:32 ` Dan Carpenter [this message]
2017-12-04 19:45 ` Marek Tomas
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=20171204093202.7qeknrmhvzwcln52@mwanda \
--to=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marek_tomas@centrum.cz \
/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
all inboxes | Powered by JetHome®