From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751194AbdGNXG3 (ORCPT ); Fri, 14 Jul 2017 19:06:29 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:32929 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbdGNXG0 (ORCPT ); Fri, 14 Jul 2017 19:06:26 -0400 From: Carlos Palminha To: CC: , , Subject: [PATCH 1/3] fat: remove prohibited spaces Date: Sat, 15 Jul 2017 00:05:48 +0100 Message-ID: <20170714230550.9435-2-palminha@synopsys.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170714230550.9435-1-palminha@synopsys.com> References: <20170714230550.9435-1-palminha@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.15.38] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove prohibited spaces based on checkpatch Signed-off-by: Carlos Palminha --- 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