From patchwork Sat Sep 26 12:05:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Moise <00moses.alexander00@gmail.com> X-Patchwork-Id: 7269091 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 506549F30C for ; Sat, 26 Sep 2015 09:06:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7ABED20453 for ; Sat, 26 Sep 2015 09:05:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95A352043C for ; Sat, 26 Sep 2015 09:05:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751890AbbIZJFn (ORCPT ); Sat, 26 Sep 2015 05:05:43 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:37658 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751818AbbIZJFm (ORCPT ); Sat, 26 Sep 2015 05:05:42 -0400 Received: by wicfx3 with SMTP id fx3so45468724wic.0; Sat, 26 Sep 2015 02:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=9l1U0JnEntOvzWsO05J6GHw8Dn0EfSGAzqp9yCYtPY8=; b=zDo2fU88FTxChITJegWdcq2JzOvmLKt9/phyrjb4DFyATcmKpmyUkdbuH8/H6/qY90 hSP/ReC5UIald6YslcmZBluc5c1z8I4uXzwGWTS4Z9TlaqLbjPyXZHA/XuLE9sDZk6Xe tK0fY0AZySGEFRPV/mryATaVLD88Ylck0958JeuYTghL4Ma4Hpjn1rQ8AVq9qEkX9XE8 88Q0H9s/bCd6UJVY3mio8vk/yh+EAFl6dNp+tpY/lT90OtY+8KZj0AyRJV3J8rm5uW9R Ubke/5RYuQwZ0PqR70HsbNlm7pQanvjeMJDrHnbcZ8zhYvJBGt+H3tpLpuLbfMK1qohD swBg== X-Received: by 10.194.246.161 with SMTP id xx1mr10796566wjc.26.1443258341032; Sat, 26 Sep 2015 02:05:41 -0700 (PDT) Received: from gmail.com ([188.24.237.229]) by smtp.gmail.com with ESMTPSA id vr8sm7414970wjc.26.2015.09.26.02.05.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2015 02:05:40 -0700 (PDT) Date: Sat, 26 Sep 2015 12:05:19 +0000 From: Alexandru Moise <00moses.alexander00@gmail.com> To: clm@fb.com Cc: jbacik@fb.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, 00moses.alexander00@gmail.com Subject: [PATCH] btrfs: remove unneeded NULL initializer for struct fs_path Message-ID: <20150926120519.GA1629@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP fs_path_alloc() either returns an alloc'ed struct fs_path or NULL, no need to initialize the pointer to NULL. Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com> --- fs/btrfs/send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index aa72bfd..0019c90 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -2230,7 +2230,7 @@ static int get_cur_path(struct send_ctx *sctx, u64 ino, u64 gen, struct fs_path *dest) { int ret = 0; - struct fs_path *name = NULL; + struct fs_path *name; u64 parent_inode = 0; u64 parent_gen = 0; int stop = 0;