From patchwork Sun Jul 31 20:34:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salah Triki X-Patchwork-Id: 9253517 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2ACF16048F for ; Sun, 31 Jul 2016 20:35:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DEF628412 for ; Sun, 31 Jul 2016 20:35:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1280D28490; Sun, 31 Jul 2016 20:35:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9810F28412 for ; Sun, 31 Jul 2016 20:35:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751922AbcGaUfU (ORCPT ); Sun, 31 Jul 2016 16:35:20 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35378 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbcGaUev (ORCPT ); Sun, 31 Jul 2016 16:34:51 -0400 Received: by mail-wm0-f67.google.com with SMTP id i5so23569829wmg.2; Sun, 31 Jul 2016 13:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=NmuhiO54arguukpc/0WU5VUx8+RTDM2h3RlP1G5RCKA=; b=F89fphpCdcg3U5ZOXOUqjd7djc1Dn2oGWRdpw3tUczn9hoF1ijR3XXxYgsb3KcB6Z/ 3+9Q8zjkhxKl+e/yfmYX97OgOJS4ZHDJ709XkLYumjd2jCB7IY5+Q8Vrim4L7jOZlDrn eF/U2bwf/S2rrAPxNXWLD+GcaDxU9eaOG0aA//1V4bmWjzt4qP4JuMYEOrig4yEx850R MesdzXmyWExUOKMvlyICfABHhP5nqIQbTgwYR/vmOqhzM/srjCLF8H3scHzlpPRhWSXv kFgDV7rfq7+MRbdSzsz9uB0wJ+x/Klf6J8Iel7rCtqzgUNhDivLCOUngSCCX3ulg3xKj IRPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=NmuhiO54arguukpc/0WU5VUx8+RTDM2h3RlP1G5RCKA=; b=bpPK/3GtmcyjeJhDfaNVo8TS8paf4VjZxsMqYNIINheiPk0oI0Kw+FTc0I8MgzgNCo T3eMOj6+WUlO6jQEHH1rOnzOH43HMfBMIV7xG+4fr6Q4Z3qX8hcGR1mNWJwKaDVfoGBP pSYI7oSHoefb2WBH0BSaHzfuluAT+UgKHLOoUWz5Z1rrziCkScJqMqoBysM6DmJWHbx5 7DoMDglz+ekjn2otAC1738Pjuc06nUz/76XYj2GT/OJ7zCodxtwQcnr+9fhZksOlnPlj sgTAVvUf14kqHKFjWVrx/I7at+qRcgPkes9F3EaqsPAmJU9bZjcpQGq3mRiiZhc4TVvF LS4Q== X-Gm-Message-State: AEkoouvU08CY12hjWcMPZ5Ut2MtVkpviDo5dRL4nY6PrTimpkRWnWDU9GDv1x4ZQPRdFqw== X-Received: by 10.28.167.144 with SMTP id q138mr51830469wme.83.1469997289656; Sun, 31 Jul 2016 13:34:49 -0700 (PDT) Received: from localhost.localdomain ([160.156.220.249]) by smtp.gmail.com with ESMTPSA id v203sm13608936wmv.2.2016.07.31.13.34.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 Jul 2016 13:34:48 -0700 (PDT) From: Salah Triki To: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, luisbg@osg.samsung.com Cc: Salah Triki , mhocko@suse.com, vdavydov@virtuozzo.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] fs: befs: remove useless initialization to zero Date: Sun, 31 Jul 2016 21:34:28 +0100 Message-Id: <1fee3d0091bc23fa0c4fed25382f37270d290d44.1469997250.git.salah.triki@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP node_off is unconditionally set to bt_super.root_node_ptr, so no need to init it to zero. Signed-off-by: Salah Triki Acked-by: Luis de Bethencourt --- fs/befs/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/btree.c b/fs/befs/btree.c index f33fc6c..3cb97e8 100644 --- a/fs/befs/btree.c +++ b/fs/befs/btree.c @@ -420,7 +420,7 @@ befs_btree_read(struct super_block *sb, const befs_data_stream *ds, { struct befs_btree_node *this_node; befs_btree_super bt_super; - befs_off_t node_off = 0; + befs_off_t node_off; int cur_key; fs64 *valarray; char *keystart;