From patchwork Wed Jan 23 09:40:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 214867 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 8FBD92C0087 for ; Wed, 23 Jan 2013 20:47:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9EF644A09E; Wed, 23 Jan 2013 10:47:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TJxhjfUAQ5SN; Wed, 23 Jan 2013 10:47:21 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ED53A4A0B5; Wed, 23 Jan 2013 10:47:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5C9334A09E for ; Wed, 23 Jan 2013 10:47:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r2GQiQd66Vmg for ; Wed, 23 Jan 2013 10:46:48 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by theia.denx.de (Postfix) with ESMTPS id 6F2964A0EC for ; Wed, 23 Jan 2013 10:46:44 +0100 (CET) Received: by mail-wg0-f41.google.com with SMTP id ds1so2394919wgb.4 for ; Wed, 23 Jan 2013 01:46:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=f6KwZ16Vdp2GA+FN31QpROMPlhzgkXaUFGbGFtzG38k=; b=LvtSs0lEJnyZAQJiHXIAL7q2wwn+H7h6c58xAhvnRuA8oAdDMpkEmemM9UsZGqQeql 80ThcUtDGnWgj2zih6zP7b85VMhbgjv057+YKmS+UyMsvyZqyC319A1vLNrCVwrStG/X j+VD2y5bTFlSj1qE4ILRIZtqys4My8Ede7i3LDkSZp0nCS/Noh5+pUdg3SbMOZZneMIW bxBia68BV8O/81lf07p9tuj+/LaUImqrRfFRbjf+DgAD0j6JjNumlfX6cyLUGR/tP1Tt y54znOM0TrPZFf/OSj7dqieILqmwyJPD5QuxDKUDgjVSqzwvS6XA8dYBIRZ7+wOU/8aZ 2MWw== X-Received: by 10.180.78.66 with SMTP id z2mr25932445wiw.23.1358934019185; Wed, 23 Jan 2013 01:40:19 -0800 (PST) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPS id bd6sm25926059wib.10.2013.01.23.01.40.16 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 23 Jan 2013 01:40:18 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Wed, 23 Jan 2013 10:40:07 +0100 Message-Id: <1358934007-14928-3-git-send-email-michal.simek@xilinx.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1358934007-14928-1-git-send-email-michal.simek@xilinx.com> References: <1358934007-14928-1-git-send-email-michal.simek@xilinx.com> X-Gm-Message-State: ALoCoQl4vwCllNRBzcc47EEsAJwIltfyCqm4OZx4O3NNrONdZpB5mwTJq2GhROrpSPG9FtOcT/lv Cc: marex@denx.de Subject: [U-Boot] [PATCH 2/2] serial: arm_dcc: Fix compilation warning and remove unneeded initialization X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de - arm_dcc_dev is already initialized. - Remove unused rc variable Warning log: arm_dcc.c: In function 'drv_arm_dcc_init': arm_dcc.c:145:6: warning: unused variable 'rc' [-Wunused-variable] Signed-off-by: Michal Simek Acked-by: Marek Vasut --- drivers/serial/arm_dcc.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index 812dcf0..c217c88 100644 --- a/drivers/serial/arm_dcc.c +++ b/drivers/serial/arm_dcc.c @@ -142,11 +142,6 @@ static struct stdio_dev arm_dcc_dev; int drv_arm_dcc_init(void) { - int rc; - - /* Device initialization */ - memset(&arm_dcc_dev, 0, sizeof(arm_dcc_dev)); - strcpy(arm_dcc_dev.name, "dcc"); arm_dcc_dev.ext = 0; /* No extensions */ arm_dcc_dev.flags = DEV_FLAGS_INPUT | DEV_FLAGS_OUTPUT;