linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] fs/efs: fix style guide for namei.c and super.c
@ 2021-01-26 20:58 Amy Parker
  0 siblings, 0 replies; only message in thread
From: Amy Parker @ 2021-01-26 20:58 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-27  5:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26 20:58 [PATCH 2/2] fs/efs: fix style guide for namei.c and super.c Amy Parker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).