Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1641742
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | David Laight <David.Laight@ACULAB.COM> |
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH 1/3] Fix ERROR: trailing statements should be on next line |
| Date | Mon, 15 May 2017 16:30:02 +0200 |
| Message-ID | <tHpay-Ra-19@gated-at.bofh.it> (permalink) |
| References | <tH5Ye-4E8-5@gated-at.bofh.it> <tHeoN-1YZ-7@gated-at.bofh.it> <tHeRQ-2oS-1@gated-at.bofh.it> |
| X-Original-To | 'Alex Williamson' <alex.williamson@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com> |
| Thread-Topic | [PATCH 1/3] Fix ERROR: trailing statements should be on next line |
| Thread-Index | AQHSzNu3v2LxZtb4XEmqOcsRJsIChqH0o6qAgAAGWQCAAMmtAA== |
| Accept-Language | en-GB, en-US |
| Content-Language | en-US |
| X-Originating-IP | [10.202.99.200] |
| Content-Type | text/plain; charset="Windows-1252" |
| Content-Transfer-Encoding | 8BIT |
| MIME-Version | 1.0 |
| X-Outbound-IP | 156.67.243.126 |
| X-Env-From | David.Laight@ACULAB.COM |
| X-Proto | esmtps |
| X-Helo | AcuExch.aculab.com |
| X-Tls | TLSv1:AES128-SHA:128 |
| X-Policysmart | 3396946, 3397078 |
| X-Virus-Status | Scanned by VirusSMART (c) |
| X-Virus-Status | Scanned by VirusSMART (s) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 23 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Maciek Fijalkowski <macfij7@wp.pl>, "netdev@vger.kernel.org" <netdev@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "virtualization@lists.linux-foundation.org" <virtualization@lists.linux-foundation.org> |
| X-Original-Date | Mon, 15 May 2017 14:25:40 +0000 |
| X-Original-Message-ID | <063D6719AE5E284EB5DD2968C1650D6DCFFF5B0B@AcuExch.aculab.com> |
| X-Original-References | <20170514175130.18664-1-macfij7@wp.pl> <20170515055700-mutt-send-email-mst@kernel.org> <20170514212048.24ee7667@t450s.home> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1641742 |
Show key headers only | View raw
From: Alex Williamson > Sent: 15 May 2017 04:21 ... > > > /* Find end of list, sew whole thing into vi->rq.pages. */ > > > - for (end = page; end->private; end = (struct page *)end->private); > > > + for (end = page; end->private; end = (struct page *)end->private) > > > + ; > > FWIW, I generally like to put a comment on the next line to make it > abundantly clear that there's nothing in the body of the loop, it's > also more aesthetically pleasing than a semi-colon on the line by > itself, ex. /* Nothing */; It's just too easy to misinterpret the > loop otherwise, especially without gratuitous white space. Thanks, My preference is to put 'continue;' on a line by itself. Or even move the termination condition into the loop: for (end = page;; end = (struct page *)end->private) if (!end->private) break; (oh, is that cast needed??) David
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/3] Fix ERROR: trailing statements should be on next line Maciek Fijalkowski <macfij7@wp.pl> - 2017-05-14 20:00 +0200
Re: [PATCH 1/3] Fix ERROR: trailing statements should be on next line "Michael S. Tsirkin" <mst@redhat.com> - 2017-05-15 05:00 +0200
Re: [PATCH 1/3] Fix ERROR: trailing statements should be on next line Alex Williamson <alex.williamson@redhat.com> - 2017-05-15 05:30 +0200
RE: [PATCH 1/3] Fix ERROR: trailing statements should be on next line David Laight <David.Laight@ACULAB.COM> - 2017-05-15 16:30 +0200
csiph-web