From: Carlos Palminha <CARLOS.PALMINHA@synopsys.com>
To: <linux-kernel@vger.kernel.org>
Cc: <hirofumi@mail.parknet.co.jp>, <viro@zeniv.linux.org.uk>,
<CARLOS.PALMINHA@synopsys.com>
Subject: [PATCH 1/3] fat: remove prohibited spaces
Date: Sat, 15 Jul 2017 00:05:48 +0100 [thread overview]
Message-ID: <20170714230550.9435-2-palminha@synopsys.com> (raw)
In-Reply-To: <20170714230550.9435-1-palminha@synopsys.com>
remove prohibited spaces based on checkpatch
Signed-off-by: Carlos Palminha <palminha@synopsys.com>
---
fs/fat/dir.c | 2 +-
fs/fat/namei_vfat.c | 2 +-
fs/fat/nfs.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index 81cecbe6d7cf..85269ee2bbd1 100644
--- a/fs/fat/dir.c
+++ b/fs/fat/dir.c
@@ -915,7 +915,7 @@ int fat_dir_empty(struct inode *dir)
bh = NULL;
cpos = 0;
while (fat_get_short_entry(dir, &cpos, &bh, &de) >= 0) {
- if (strncmp(de->name, MSDOS_DOT , MSDOS_NAME) &&
+ if (strncmp(de->name, MSDOS_DOT, MSDOS_NAME) &&
strncmp(de->name, MSDOS_DOTDOT, MSDOS_NAME)) {
result = -ENOTEMPTY;
break;
diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c
index 6a7152d0c250..0d7b49dcff12 100644
--- a/fs/fat/namei_vfat.c
+++ b/fs/fat/namei_vfat.c
@@ -983,7 +983,7 @@ static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry,
}
drop_nlink(old_dir);
if (!new_inode)
- inc_nlink(new_dir);
+ inc_nlink(new_dir);
}
err = fat_remove_entries(old_dir, &old_sinfo); /* and releases bh */
diff --git a/fs/fat/nfs.c b/fs/fat/nfs.c
index eb192656fba2..30dfc5da29db 100644
--- a/fs/fat/nfs.c
+++ b/fs/fat/nfs.c
@@ -73,7 +73,7 @@ static struct inode *__fat_nfs_get_inode(struct super_block *sb,
}
if (inode == NULL && MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO) {
struct buffer_head *bh = NULL;
- struct msdos_dir_entry *de ;
+ struct msdos_dir_entry *de;
sector_t blocknr;
int offset;
fat_get_blknr_offset(MSDOS_SB(sb), i_pos, &blocknr, &offset);
--
2.11.0
next prev parent reply other threads:[~2017-07-14 23:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-14 23:05 [PATCH 0/3] fat: fix several checkpatch warnings Carlos Palminha
2017-07-14 23:05 ` Carlos Palminha [this message]
2017-07-14 23:05 ` [PATCH 2/3] fat: add missing blank lines Carlos Palminha
2017-07-14 23:05 ` [PATCH 3/3] fat: fix quoted string splits Carlos Palminha
2017-07-15 1:20 ` Andy Shevchenko
2017-07-15 4:18 ` Joe Perches
2017-07-16 13:46 ` Andy Shevchenko
2017-07-16 15:06 ` Joe Perches
2017-07-16 15:30 ` Andy Shevchenko
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=20170714230550.9435-2-palminha@synopsys.com \
--to=carlos.palminha@synopsys.com \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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