From patchwork Sun Aug 20 20:20:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9911437 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 B8484600C8 for ; Sun, 20 Aug 2017 20:21:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACF972852A for ; Sun, 20 Aug 2017 20:21:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1D2A286D6; Sun, 20 Aug 2017 20:21:31 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 644BA2852A for ; Sun, 20 Aug 2017 20:21:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753260AbdHTUVQ (ORCPT ); Sun, 20 Aug 2017 16:21:16 -0400 Received: from mout.web.de ([212.227.17.12]:57678 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753191AbdHTUVP (ORCPT ); Sun, 20 Aug 2017 16:21:15 -0400 Received: from [192.168.1.2] ([92.225.240.160]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MDPIf-1dmWJa0i6P-00Gmxz; Sun, 20 Aug 2017 22:21:07 +0200 Subject: [PATCH 4/4] btrfs: Delete an unnecessary variable initialisation in tree_mod_log_eb_copy() From: SF Markus Elfring To: linux-btrfs@vger.kernel.org, Chris Mason , David Sterba , Josef Bacik Cc: LKML , kernel-janitors@vger.kernel.org References: <360126ba-e45b-0a8d-57b6-83764c4c2bce@users.sourceforge.net> Message-ID: <31e6e888-586c-3480-7d57-dbf96989a26c@users.sourceforge.net> Date: Sun, 20 Aug 2017 22:20:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <360126ba-e45b-0a8d-57b6-83764c4c2bce@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:QBohqA0Pwnr4njTK/sC/J7wiWCmpuBXKiXX5jV8vmZ4cJ3+vyze tHKkCVY+j+hOA7HASFGAajFdlCEN9vuHY6u6WRoy1TLbdYvTKfzoL8KVcA22ojRXJL36ZaG AGVyN/chd3l4TF64dsP35azZzArFEZzL+NClrmx/gVGa3y8CaefeQ093HewpOq2OER2ia4o 9BRojeoBWBIcVr4iK7ezg== X-UI-Out-Filterresults: notjunk:1; V01:K0:x+Dq9FA8V+g=:o0sbzdng7II3w6jR5AaTCo keQTXh8lVNoFlyqQseNNwmEjJUb0D8CjFYhvSCQ1yduIVHCVcTKc+m4RreXnPl1ztnZzAI/QF taXpyKI9jzNBQt9VoRqZMy64XsNivOwqFIvNYl5pCMdNnNVECsKUfkkqsUCTXHWfyQDMqhnOJ xt4U3Jkw8ffrHsHq6QL5sXOOaG7hQHULvrsI0+Y0iBfRN01x0KV7XZigpiP9O6Fd0bIsnPzS2 xTgx/dsNMP30YKQdMJ/3Rw1v2p+FFyDB/byhrR2hhmhtcXy0i4HsqiVtgHZ72WXOLXiWrKRaY C/xH7fjABimtKHA3R4pg9VP7R1ghtT1x5drPUlN4yDQAJf3yaSh04K+wY2TFiDJNRHTCKQ5Wu CQ8aLG7VMuOTapiLPG2M+Sot3n3j8FLCTw7AjBkr4cjtxtGb4Es6fCIKwI2/lLIxd//g2tbk6 qFcZ4YQPIL6vyX9DvIBaAnu2rwWpNSWCn5e2XcyhT3E6r36OVKAciR0ehjYmynh8fg0WKxozv bpIxjFGWTYMb5YCDHFhW2On9LHOO3DYnd75ZoaKOXP8to5uv2D0fSMuW/TRHzFzrOvZitrjHi M5c0s7TKltpNn9IUOdV2EHj+nX06RMX1UnOhbZvHclv3ykt/G6yNRV2WKLkWbOSpz8vFQy+jk jnDp+uampyQr46EyTwxZMG1sX/O+F46wQjphmTqPpBP89lTflZQ/YnrXztr3KlEHXPCrimtta 8Md66p78maWx7h0duCQKAz6pc8mzrmVS4thZp6BO4D/9MTz/kNFU8ST+1TcDmmHXQske3kTLd XDl+K9IMUwf44WZiQSNUhXImmYLOWGSUwL52CrQbjknVvx/bMQ= Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sun, 20 Aug 2017 22:02:54 +0200 The variable "tm_list" will eventually be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring Reviewed-by: Timofey Titovets --- fs/btrfs/ctree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 3b49f39eaaf6..78387f5be0ce 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -801,7 +801,7 @@ tree_mod_log_eb_copy(struct btrfs_fs_info *fs_info, struct extent_buffer *dst, unsigned long src_offset, int nr_items) { int ret = 0; - struct tree_mod_elem **tm_list = NULL; + struct tree_mod_elem **tm_list; struct tree_mod_elem **tm_list_add, **tm_list_rem; int i; int locked = 0;