From: Alexander Kuleshov <kuleshovmail@gmail.com>
To: hirofumi@mail.parknet.co.jp
Cc: linux-kernel@vger.kernel.org,
Alexander Kuleshov <kuleshovmail@gmail.com>
Subject: [PATCH 1/3] fs/fat: remove unnecessary defintion
Date: Wed, 18 Feb 2015 01:22:18 +0600 [thread overview]
Message-ID: <1424200938-19637-1-git-send-email-kuleshovmail@gmail.com> (raw)
In-Reply-To: <1424200897-19171-1-git-send-email-kuleshovmail@gmail.com>
'*sb' never used, so let's remote it and pass inode->i_sb directly to
the MSDOS_SB.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
fs/fat/inode.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 7b41a2d..e140e62 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -1280,8 +1280,7 @@ out:
static int fat_read_root(struct inode *inode)
{
- struct super_block *sb = inode->i_sb;
- struct msdos_sb_info *sbi = MSDOS_SB(sb);
+ struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb);
int error;
MSDOS_I(inode)->i_pos = MSDOS_ROOT_INO;
--
2.3.0.401.g57a267c.dirty
next prev parent reply other threads:[~2015-02-17 19:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-17 19:21 [PATCH 0/3] fs/fat: minor cleanup Alexander Kuleshov
2015-02-17 19:22 ` Alexander Kuleshov [this message]
2015-02-17 19:22 ` [PATCH 2/3] fs/fat: use MSDOS_SB to get msdos superblock Alexander Kuleshov
2015-02-17 19:22 ` [PATCH 3/3] fs/fat: remove unnecessary includes Alexander Kuleshov
2015-02-17 19:45 ` [PATCH 0/3] fs/fat: minor cleanup OGAWA Hirofumi
2015-02-18 19:10 [PATCH 1/3] fs/fat: remove unnecessary defintion Alexander Kuleshov
2015-02-18 19:11 ` Alexander Kuleshov
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=1424200938-19637-1-git-send-email-kuleshovmail@gmail.com \
--to=kuleshovmail@gmail.com \
--cc=hirofumi@mail.parknet.co.jp \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®