From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Qi Date: Thu, 6 Nov 2014 10:02:18 +0800 Subject: [Ocfs2-devel] [PATCH] ocfs2: Remove pointless assignment in ocfs2_init() In-Reply-To: <1413903774-18825-1-git-send-email-jack@suse.cz> References: <1413903774-18825-1-git-send-email-jack@suse.cz> Message-ID: <545AD6AA.8030007@huawei.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ocfs2-devel@oss.oracle.com Does it mean we can ignore the failure of creating debugfs? On 2014/10/21 23:02, Jan Kara wrote: > Remove assignment which is never used. > > Coverity-id: 1227009 > Signed-off-by: Jan Kara > --- > fs/ocfs2/super.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c > index 93c85bc745e1..e1be0f0ea411 100644 > --- a/fs/ocfs2/super.c > +++ b/fs/ocfs2/super.c > @@ -1621,10 +1621,8 @@ static int __init ocfs2_init(void) > } > > ocfs2_debugfs_root = debugfs_create_dir("ocfs2", NULL); > - if (!ocfs2_debugfs_root) { > - status = -EFAULT; > + if (!ocfs2_debugfs_root) > mlog(ML_ERROR, "Unable to create ocfs2 debugfs root.\n"); > - } > > ocfs2_set_locking_protocol(); > >