From patchwork Sun Jul 31 20:34:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salah Triki X-Patchwork-Id: 9253523 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 883EE608A2 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 7AF7128481 for ; Sun, 31 Jul 2016 20:35:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EBC72848E; 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 127922848F for ; Sun, 31 Jul 2016 20:35:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbcGaUf1 (ORCPT ); Sun, 31 Jul 2016 16:35:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35395 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751513AbcGaUez (ORCPT ); Sun, 31 Jul 2016 16:34:55 -0400 Received: by mail-wm0-f66.google.com with SMTP id i5so23570073wmg.2; Sun, 31 Jul 2016 13:34:54 -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=G5XVgz5T4Bv25CJccJ3ygTheBprHoFkZhjitQIKFbN0=; b=Q7xDUMGAUz/8nGtSITrWPRR7x3uhbrckfsIgeeZ0Zj/vzmO2jGucjIOjVMAkeWE3sn +5B1xRQyzNTSyRgn4mV8U7qsWu+FkAoU9WjNVej1R8PKzsjJ9E766M04EE6q5TMkdJ0Z qmNnwjTKfEadIfga+5XfRHtODXL/qITncUQ+BSijhleDuzS6C2EsRrPnF7q+Tz+cFdnY DEftiKPymyXKYrzx5owEygKf6SIaR+F7a/PdNk7Hjc24Na9sUw3zL+RlOmGAEhpshQoP 31RKJu/EQ5tj4cBtG1BoYE3BY5vS77wx1UR1uF+vxW74QCI+27pHYceRMWpaT1MGRm6S aD0g== 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=G5XVgz5T4Bv25CJccJ3ygTheBprHoFkZhjitQIKFbN0=; b=AxY4KgTXyq2YCDDZHrmId4E6pN9NrIbFLif/ZwsoxOFFXqO33jVFKjqn1v55hbFZ2A tclDfk7MMtzxtqXBqmMHU4xslAiDVcneMDfCNuQbvEjvh0cUKrmh0z7jDGV12LxIUrQ2 YHxY4JI2bz1hpgFyXREvx7Gf2IyyfjlInx8GCacVwcPXxGj6YE3wGExCsflHczgSoFkm DRVppX8SUBJNFpgO3S8iCBaJGtcSxmksQy/d761X4uvFA+bJ0IlpxSLqP3Lj41/fTRr9 LwGZJ3vSPJV93NCpYe5eA5mgLiMSXpV462YAJYjOLD1rDasrrtH31qY9DD/y+w4AHVil VwLA== X-Gm-Message-State: AEkooutxeggghs/++/J8ZpqkeV/J9HCcllnN+LjHqb3Iaa0+h07jl0BHZ/kkuQwLWtZXYA== X-Received: by 10.28.211.10 with SMTP id k10mr51593854wmg.16.1469997293276; Sun, 31 Jul 2016 13:34:53 -0700 (PDT) Received: from localhost.localdomain ([160.156.220.249]) by smtp.gmail.com with ESMTPSA id v203sm13608936wmv.2.2016.07.31.13.34.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 Jul 2016 13:34:52 -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 5/6] fs: befs: remove in vain variable assignment Date: Sun, 31 Jul 2016 21:34:30 +0100 Message-Id: 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 There is no need to init res, since it will be overwitten later by befs_fblock2brun(). Signed-off-by: Salah Triki Acked-by: Luis de Bethencourt --- fs/befs/linuxvfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 6bc5b40..2b68c81 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -120,7 +120,7 @@ befs_get_block(struct inode *inode, sector_t block, struct super_block *sb = inode->i_sb; befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; befs_block_run run = BAD_IADDR; - int res = 0; + int res; ulong disk_off; befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld",