From patchwork Mon Nov 3 04:23:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 3562 Received: (qmail 1168 invoked by alias); 3 Nov 2014 04:24:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 1156 invoked by uid 89); 3 Nov 2014 04:24:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f45.google.com Received: from mail-pa0-f45.google.com (HELO mail-pa0-f45.google.com) (209.85.220.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 03 Nov 2014 04:24:52 +0000 Received: by mail-pa0-f45.google.com with SMTP id lf10so11403598pab.4 for ; Sun, 02 Nov 2014 20:24:51 -0800 (PST) X-Received: by 10.66.157.101 with SMTP id wl5mr15167038pab.37.1414988690981; Sun, 02 Nov 2014 20:24:50 -0800 (PST) Received: from sspiff.org (173-13-178-53-sfba.hfc.comcastbusiness.net. [173.13.178.53]) by mx.google.com with ESMTPSA id ug8sm9977530pab.40.2014.11.02.20.24.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Nov 2014 20:24:50 -0800 (PST) Received: by sspiff.org (sSMTP sendmail emulation); Sun, 02 Nov 2014 20:23:58 -0800 From: Doug Evans To: gdb-patches@sourceware.org Subject: [OB PATCH] xcoffread.c (process_linenos): Delete unnecessary code. Date: Sun, 02 Nov 2014 20:23:58 -0800 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. Committed as obvious. There's no point in zeroing out a local variable right before the function returns. Build-tested on amd64-linux with --enable-targets=all. 2014-11-02 Doug Evans * xcoffread.c (process_linenos): Delete unnecessary zeroing of main_subfile before returning. diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 90cc32f..7594feb 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -809,9 +809,6 @@ return_after_cleanup: /* We don't want to keep alloc/free'ing the global include file table. */ inclIndx = 0; - - /* Start with a fresh subfile structure for the next file. */ - memset (&main_subfile, '\0', sizeof (struct subfile)); } static void