Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754681AbbBRTLZ (ORCPT ); Wed, 18 Feb 2015 14:11:25 -0500 Received: from mail-ob0-f180.google.com ([209.85.214.180]:64465 "EHLO mail-ob0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752826AbbBRTLY (ORCPT ); Wed, 18 Feb 2015 14:11:24 -0500 MIME-Version: 1.0 In-Reply-To: <1424286623-32304-1-git-send-email-kuleshovmail@gmail.com> References: <1424286623-32304-1-git-send-email-kuleshovmail@gmail.com> Date: Thu, 19 Feb 2015 01:11:23 +0600 Message-ID: Subject: Re: [PATCH 1/3] fs/fat: remove unnecessary defintion From: Alexander Kuleshov To: OGAWA Hirofumi Cc: linux-kernel@vger.kernel.org, Alexander Kuleshov Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1103 Lines: 39 Sorry for noise. Sent wrong patch. 2015-02-19 1:10 GMT+06:00 Alexander Kuleshov : > '*sb' never used, so let's remote it and pass inode->i_sb directly to > the MSDOS_SB. > > Signed-off-by: Alexander Kuleshov > --- > 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 > -- _________________________ 0xAX -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/