From patchwork Sun Jul 31 20:34:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salah Triki X-Patchwork-Id: 9253513 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 761A36089F for ; Sun, 31 Jul 2016 20:35:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6902D2848E for ; Sun, 31 Jul 2016 20:35:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F1622848F; Sun, 31 Jul 2016 20:35:18 +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 0782528481 for ; Sun, 31 Jul 2016 20:35:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751547AbcGaUez (ORCPT ); Sun, 31 Jul 2016 16:34:55 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33479 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751329AbcGaUet (ORCPT ); Sun, 31 Jul 2016 16:34:49 -0400 Received: by mail-wm0-f67.google.com with SMTP id o80so23564811wme.0; Sun, 31 Jul 2016 13:34:48 -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=//yHoHwIXoMNt0bsyPLSETlqdFbrQp8sQAALJgjSSVc=; b=O0GXVOMbL+m10+04LZJVEXJUXPVL8xhy/QlSW10w7M6DnWwYyFm+fxe3/2Wu0gvvZ4 4aBi/LLv5ZCu+2OfpYLY3bRaxnLtQN1hBXdV9h1VFPrptztAxmsH+a0L3xCnr/quv8de sCoQnH17RPxxtvKtRZzcPknB9dceOP4w5p22ErPF0byqwpLieVT37rr709glK75Z5L+R xx+zbyoQe6SjPWBFbeF6/Gk/xDV4CmcyhgmYGIS6EQwIqDI/ihbaDnu/MFdZdcjgpuV5 VIdLZHwitnAbmydUiIJRkCphavdyj3otb++jZY08ao3cWZ8+5vbGOW2vgoBrwqGON4PZ vZEw== 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=//yHoHwIXoMNt0bsyPLSETlqdFbrQp8sQAALJgjSSVc=; b=OmUpx6offAS+oD8QTps7gr8ZkKmso5+Pkq+FVyMz5t1FM2JRL+HhQ0hYeKQm95o5Ny 0ulmQjjAV7W0m3hE1gO9YJuaDQKP/46a+UIl6d/kqCDnJeq/WxWV3V5ESaanJVEqifZ7 OIKMC7OFzYQI/8QyTMQsplHlXzkxjFYWSRfsBpDYZURVfOxzuBpb/qh5qEpaKf6v+c5u kngq3RysRwMdjuUanAitrTY/RbZJLsVf7K3LsfgoB6trqyUz0RPn98o2lDEXGBx3dpCl rLoYQEflJq8Le1I534B16cQXXGgv/mv6T3L8sv0Znt9qvWZi8pedd9jgXrKpmhGYJWl2 zKhQ== X-Gm-Message-State: AEkoouu3n+eDgVOganVVErUpiMl3sIE0lre37Nit6gUHqKSqSFD6KJhqzlwhWCZykAp+bg== X-Received: by 10.28.196.14 with SMTP id u14mr51120848wmf.17.1469997287768; Sun, 31 Jul 2016 13:34:47 -0700 (PDT) Received: from localhost.localdomain ([160.156.220.249]) by smtp.gmail.com with ESMTPSA id v203sm13608936wmv.2.2016.07.31.13.34.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 Jul 2016 13:34:46 -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 2/6] fs: befs: remove in vain variable assignment Date: Sun, 31 Jul 2016 21:34:27 +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 set *value, it will be overwritten later. Signed-off-by: Salah Triki Acked-by: Luis de Bethencourt --- fs/befs/btree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/befs/btree.c b/fs/befs/btree.c index a0e8cfa..f33fc6c 100644 --- a/fs/befs/btree.c +++ b/fs/befs/btree.c @@ -348,8 +348,6 @@ befs_find_key(struct super_block *sb, struct befs_btree_node *node, befs_debug(sb, "---> %s %s", __func__, findkey); - *value = 0; - findkey_len = strlen(findkey); /* if node can not contain key, just skeep this node */