All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amy Parker <enbyamy@gmail.com>
To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] fs/efs: fix style guide for namei.c and super.c
Date: Tue, 26 Jan 2021 12:58:06 -0800	[thread overview]
Message-ID: <CAE1WUT7agR9YvnK8+11yFU1sGwOxXchpP0PQeuPziKvw6GFrMQ@mail.gmail.com> (raw)

This patch updates various styling in namei.c and super.c to follow
the kernel style guide.

Signed-off-by: Amy Parker <enbyamy@gmail.com>
---
fs/efs/namei.c |  2 +-
fs/efs/super.c | 13 +++++++------
2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/fs/efs/namei.c b/fs/efs/namei.c
index 38961ee1d1af..65d9c7f4d0c0 100644
--- a/fs/efs/namei.c
+++ b/fs/efs/namei.c
@@ -28,7 +28,7 @@ static efs_ino_t efs_find_entry(struct inode *inode,
const char *name, int le
n)
               pr_warn("%s(): directory size not a multiple of EFS_DIRBSIZE\n",
                       __func__);

-       for(block = 0; block < inode->i_blocks; block++) {
+       for (block = 0; block < inode->i_blocks; block++) {

               bh = sb_bread(inode->i_sb, efs_bmap(inode, block));
               if (!bh) {
diff --git a/fs/efs/super.c b/fs/efs/super.c
index 62b155b9366b..d55c481796f1 100644
--- a/fs/efs/super.c
+++ b/fs/efs/super.c
@@ -170,7 +170,7 @@ static efs_block_t efs_validate_vh(struct
volume_header *vh) {
       }

       ui = ((__be32 *) (vh + 1)) - 1;
-       for(csum = 0; ui >= ((__be32 *) vh);) {
+       for (csum = 0; ui >= ((__be32 *) vh);) {
               cs = *ui--;
               csum += be32_to_cpu(cs);
       }
@@ -182,11 +182,11 @@ static efs_block_t efs_validate_vh(struct
volume_header *vh) {
#ifdef DEBUG
       pr_debug("bf: \"%16s\"\n", vh->vh_bootfile);

-       for(i = 0; i < NVDIR; i++) {
+       for (i = 0; i < NVDIR; i++) {
               int     j;
               char    name[VDNAMESIZE+1];

-               for(j = 0; j < VDNAMESIZE; j++) {
+               for (j = 0; j < VDNAMESIZE; j++) {
                       name[j] = vh->vh_vd[i].vd_name[j];
               }
               name[j] = (char) 0;
@@ -199,9 +199,9 @@ static efs_block_t efs_validate_vh(struct
volume_header *vh) {
       }
#endif

-       for(i = 0; i < NPARTAB; i++) {
+       for (i = 0; i < NPARTAB; i++) {
               pt_type = (int) be32_to_cpu(vh->vh_pt[i].pt_type);
-               for(pt_entry = sgi_pt_types; pt_entry->pt_name; pt_entry++) {
+               for (pt_entry = sgi_pt_types; pt_entry->pt_name; pt_entry++) {
                       if (pt_type == pt_entry->pt_type) break;
               }
#ifdef DEBUG
@@ -222,7 +222,8 @@ static efs_block_t efs_validate_vh(struct
volume_header *vh) {
       if (slice == -1) {
               pr_notice("partition table contained no EFS partitions\n");
#ifdef DEBUG
-       } else {
+       }
+       else {
               pr_info("using slice %d (type %s, offset 0x%x)\n", slice,
                       (pt_entry->pt_name) ? pt_entry->pt_name : "unknown",
                       sblock);
--
2.29.2

                 reply	other threads:[~2021-01-27  5:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAE1WUT7agR9YvnK8+11yFU1sGwOxXchpP0PQeuPziKvw6GFrMQ@mail.gmail.com \
    --to=enbyamy@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.