From: Kitone ELvis Peter <elviskitone@gmail.com>
To: axboe@kernel.dk
Cc: linux-block@vger.kernel.org
Subject: [PATCH] Signed-off-by: Kitone ELvis Peter <elviskitone@gmail.com>
Date: Fri, 8 Jun 2018 11:57:13 +0300 [thread overview]
Message-ID: <20180608085712.GA5389@kitone-HP-ProBook-4530s> (raw)
Subject: REMOVE CODING STYLE ERRORS AND WARNINGS
Removed trailing spaces, used tab instead of spaces and also removed the
space between a variable and the '++' operator to improve code readability
---
block/partitions/acorn.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/block/partitions/acorn.c b/block/partitions/acorn.c
index fbeb697..3bfe39d 100644
--- a/block/partitions/acorn.c
+++ b/block/partitions/acorn.c
@@ -79,7 +79,7 @@ static int riscix_partition(struct parsed_partitions *state,
{
Sector sect;
struct riscix_record *rr;
-
+
rr = read_part_sector(state, first_sect, §);
if (!rr)
return -1;
@@ -152,7 +152,7 @@ static int linux_partition(struct parsed_partitions *state,
put_partition(state, slot++, first_sect +
le32_to_cpu(linuxp->start_sect),
le32_to_cpu(linuxp->nr_sects));
- linuxp ++;
+ linux++;
}
strlcat(state->pp_buf, " >", PAGE_SIZE);
@@ -269,7 +269,7 @@ int adfspart_check_ADFS(struct parsed_partitions *state)
dr = adfs_partition(state, "ADFS", data, 0, slot++);
if (!dr) {
put_dev_sector(sect);
- return 0;
+ return 0;
}
heads = dr->heads + ((dr->lowsector >> 6) & 1);
@@ -365,10 +365,10 @@ int adfspart_check_ICS(struct parsed_partitions *state)
*/
data = read_part_sector(state, 0, §);
if (!data)
- return -1;
+ return -1;
if (!valid_ics_sector(data)) {
- put_dev_sector(sect);
+ put_dev_sector(sect);
return 0;
}
--
2.7.4
next reply other threads:[~2018-06-08 8:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-08 8:57 Kitone ELvis Peter [this message]
2018-06-08 13:11 ` [PATCH] Signed-off-by: Kitone ELvis Peter <elviskitone@gmail.com> Jens Axboe
-- strict thread matches above, loose matches on Subject: below --
2018-06-08 9:07 [PATCH] Signed-off-by: Kitone Elvis " Kitone Elvis Peter
2018-06-08 13:12 ` Jens Axboe
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=20180608085712.GA5389@kitone-HP-ProBook-4530s \
--to=elviskitone@gmail.com \
--cc=axboe@kernel.dk \
--cc=linux-block@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