From patchwork Wed Jul 18 12:13:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luciano Coelho X-Patchwork-Id: 1210691 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 683F8DFFFD for ; Wed, 18 Jul 2012 12:13:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753395Ab2GRMNz (ORCPT ); Wed, 18 Jul 2012 08:13:55 -0400 Received: from na3sys009aog111.obsmtp.com ([74.125.149.205]:53764 "EHLO na3sys009aog111.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752018Ab2GRMNx (ORCPT ); Wed, 18 Jul 2012 08:13:53 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]) (using TLSv1) by na3sys009aob111.postini.com ([74.125.148.12]) with SMTP ID DSNKUAaogDslyvw37YV5jZJ0JzELTvmVZJGM@postini.com; Wed, 18 Jul 2012 05:13:53 PDT Received: by lbom4 with SMTP id m4so4559042lbo.16 for ; Wed, 18 Jul 2012 05:13:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=up0atNM9ol6AVgB0/+zhiSyfpF1EIJhBvhMCHNfgDok=; b=Msf+8pCxELx+G73N/b0VJMnplAQxpNsHYDl4XniDdnHoDtDX3mA4wWbyzzss9hnuuo uBLOeNX1D0KwU5tsMt5/WHHExMiHY2bBfavl9qMe1nxjH4G34wY2qVkaqQ6ZMaIJ/Xcg yNTp8T4IfuyAEOAGsJWxJsGC57oswi+NiE9kQkSlPJKBW+is3caMLT86vmD4sNZ6YBb9 phXPFLbQxmsaVoX+IszODdsNxMaluvJni3h2F/ldKZsMBNuLnm3/orWX1czRnvECioi8 OTykVsyPC51ugBVddiJ0tL1IMGGTvESJV6mHJn5yBjNBQWuR0Pg+LMHayssquy44y9xf lqxQ== Received: by 10.152.124.180 with SMTP id mj20mr3175113lab.43.1342613630678; Wed, 18 Jul 2012 05:13:50 -0700 (PDT) Received: from cumari.Elisa (a88-113-65-16.elisa-laajakaista.fi. [88.113.65.16]) by mx.google.com with ESMTPS id gv8sm21679270lab.14.2012.07.18.05.13.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jul 2012 05:13:50 -0700 (PDT) From: Luciano Coelho To: linux-wireless@vger.kernel.org Cc: coelho@ti.com, arik@wizery.com Subject: [PATCH 05/14] wl18xx: fix bogus compile warning on cc config option Date: Wed, 18 Jul 2012 15:13:24 +0300 Message-Id: <1342613613-917-6-git-send-email-coelho@ti.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1342613613-917-1-git-send-email-coelho@ti.com> References: <1342613613-917-1-git-send-email-coelho@ti.com> X-Gm-Message-State: ALoCoQmoJOW+8WVuVQVtP0Ecngb66gVe2f9MNejNSFyx8CcaAu0Gj3nHM+23rUdgbM9noJy0JC27 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Arik Nemtsov Initialize val to 0, to remove the following warning with CONFIG_CC_OPTIMIZE_FOR_SIZE. The compiler used was gcc 4.4.1 (Sourcery G++ Lite 2010q1-202). drivers/net/wireless/ti/wl18xx/io.c: In function 'wl18xx_top_reg_read': drivers/net/wireless/ti/wl18xx/io.c:57: warning: 'val' may be used uninitialized in this function Signed-off-by: Arik Nemtsov Signed-off-by: Luciano Coelho --- drivers/net/wireless/ti/wl18xx/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wl18xx/io.c b/drivers/net/wireless/ti/wl18xx/io.c index 0c06ccf..f0abf3e 100644 --- a/drivers/net/wireless/ti/wl18xx/io.c +++ b/drivers/net/wireless/ti/wl18xx/io.c @@ -54,7 +54,7 @@ out: int wl18xx_top_reg_read(struct wl1271 *wl, int addr, u16 *out) { - u32 val; + u32 val = 0; int ret; if (WARN_ON(addr % 2))