From patchwork Sun Aug 20 16:41:12 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: 9911225 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 1B588603F3 for ; Sun, 20 Aug 2017 16:41:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A0AF28703 for ; Sun, 20 Aug 2017 16:41:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2CB32877A; Sun, 20 Aug 2017 16:41:39 +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 A3BD228749 for ; Sun, 20 Aug 2017 16:41:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753180AbdHTQlQ (ORCPT ); Sun, 20 Aug 2017 12:41:16 -0400 Received: from mout.web.de ([212.227.17.11]:51112 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753101AbdHTQlP (ORCPT ); Sun, 20 Aug 2017 12:41: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 0LgpJ4-1dG8Tf1Pks-00oBos; Sun, 20 Aug 2017 18:41:13 +0200 Subject: [PATCH 7/8] CIFS: Delete an unnecessary variable initialisation in cifs_do_create() From: SF Markus Elfring To: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, Steve French Cc: LKML , kernel-janitors@vger.kernel.org References: <826310e5-e01c-38af-90df-c5630f761a4d@users.sourceforge.net> Message-ID: Date: Sun, 20 Aug 2017 18:41:12 +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: <826310e5-e01c-38af-90df-c5630f761a4d@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:OIs/cLvxVnNUg/+6lruAGt6eL4M4pfCI72xKUL+iju6LupjWi7Y UoBXXQfi7ret5PaLX85I7id/NH1rnSmeo+mnZesJ7OoYfT9yQ9u/szGdeEFcu6+f1+oi6Fq P4haqna5QSEnJFqX+BTwE9iVGRmuLTA3LbxS9jOLhqBQ2H7EYauH85HnXDkkAJJoN17scxs RK1+4xjFmHO9Chuik68rQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:jqXZG7xNj0k=:+z+WtwcvCYvadHjw7kJ+4X KEbb4q8t3sWEgqLJfq3uNwdfFfZiptOeb5yvexvUsKaL5sX/GhLfXZannY8T1jYT4QYhby+Qt AkH51lfuqjPVITbrrvtmZHcKKbFMco3dXVdq4JHoF+Y3ve9w9T7bKvwLHjlTZKJNNlRYct2hI UycMepf5MGNMTXkACB7QTdMK77U8B2zYCABcdebRKVxjJr1xbIVnGsv4mDb1UvrJtuJQgBQoO TG3e5deUxMqqav1w+yPBLJOrxGugheyx9Z/JzMuVgRJS91a0QdmZWKdvl+fUIQ+dU3QWP5ZT2 O2+aQhi2HpAgo4FPO/WwhFCCxUosx3sFh3wJxShNyDo+OHte+HQ2Tseg85MIYhHt+tvOZ8yGG q0ZU1+yIWWr8Sgnu/h+J+Fx5WnBtRjXddyrblv5XqwACmA3pJDt7qbjzgV/yxxUAjhtzveFuA L/Bt9Y/K8fXhey5yAMJJv41dMAUqw4ctQEkeUEHoL0egfe0IlV/qqhlDu0b5+Mq458W5boE56 2w3Y2Gr9xTFvMN5sQRkmoXSqKOQ6SPzZ1RO+rLhBXEl7+dEj0cxDakKx4rW+ndjfvtojMC3SN r+P0Z+ilRYSHmaohJwL9ifBDWPo0TTQDOb1I2o7Esr0hXvBRc5tz96vfhKIu2FS29sYagmItE N/12ufCjEZPaAK8Pq8+e2LoWW9575t8VeA1UXJz/amxYul9mXZieve/L6tN3P/m4NcVbDv9rB KwNEoHy6PbKPmsaYrGrWop+4JQk21na8nrHbm60hl2kddm7r9m3MOPDyyypM9BWc2zYMe34qf JmLxo9bcQQn80dhsdW7OIVaN1JKMMkjoXX3WLQvwWDrFjMjz6Y= Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sun, 20 Aug 2017 17:20:36 +0200 The local variable "full_path" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- fs/cifs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 248aead1f3f4..69babcf4f653 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -227,7 +227,7 @@ cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid, int desired_access; struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); struct cifs_tcon *tcon = tlink_tcon(tlink); - char *full_path = NULL; + char *full_path; FILE_ALL_INFO *buf = NULL; struct inode *newinode = NULL; int disposition;