From patchwork Wed Mar 30 05:24:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivamurthy Shastri X-Patchwork-Id: 64635 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2396018lbc; Tue, 29 Mar 2016 22:25:33 -0700 (PDT) X-Received: by 10.66.156.232 with SMTP id wh8mr9902951pab.159.1459315533284; Tue, 29 Mar 2016 22:25:33 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id yl8si3719215pab.245.2016.03.29.22.25.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Mar 2016 22:25:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 021791A1F8C; Tue, 29 Mar 2016 22:26:02 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [IPv6:2607:f8b0:400e:c03::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6C1301A1F8B for ; Tue, 29 Mar 2016 22:26:01 -0700 (PDT) Received: by mail-pa0-x22f.google.com with SMTP id fe3so31402005pab.1 for ; Tue, 29 Mar 2016 22:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=7WPcsgMp98B2FznrnVQ5SDhR6GfyNZ+H0W48eUipdJQ=; b=Poj8CZV9qYEx+2h07M92FjSqNSfjdaRnIH4ROn5iQ/y0jK5luN4GtFyy2fbk3l91MU uIqgOp/mv5yj6Gs/o7ae59NYPZt062Hjvfzi2qkmV4uH4cWRmlXFn62zkQCpqSKPweov JUIsWBLqbEF6K1CGFE1Vt8H7Pgsg0IETm25zE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7WPcsgMp98B2FznrnVQ5SDhR6GfyNZ+H0W48eUipdJQ=; b=gTFO9xPPsPu4v/dR93wRp9TtC4qE66tiXXTP+3cVd1C+4JESVQ7F99fwsgrf2MXUad Nz5Bo8V1sW1aY+y4O9LOwRSb3uecb985+mdAQiRLkJ/T0EM1G46XMRGfb6JWv2fHG5UE acsuuPwMn6lRS8yx2oQ6q+S/jbxdRGPzH0D5NxCRVq/w4HcaFvuk8nYhRW8LNmYW6V5o 8vH95vsoNcDCgDRr0aj5VcFofqj7NjPU9u9oxgNM9RhfMhJIjkn65R8s9QUNgAxSRthK wunnTR3kj+akjo686CPmjxEQiWDJBvY6uaHvXtKlzAmCiJonR53glEaZHuN7AdUmTFSr eJAA== X-Gm-Message-State: AD7BkJKKjqYs5BTmZZM5r3OtisaWxoo2JGb8/SnUCLEawP/KKbkhQNjk+G0Sgzr4rFPMsWlG X-Received: by 10.67.1.65 with SMTP id be1mr9916012pad.46.1459315531522; Tue, 29 Mar 2016 22:25:31 -0700 (PDT) Received: from localhost.localdomain ([106.51.27.234]) by smtp.gmail.com with ESMTPSA id u21sm2227814pfa.60.2016.03.29.22.25.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Mar 2016 22:25:31 -0700 (PDT) From: Shivamurthy Shastri To: ruiyu.ni@intel.com Date: Wed, 30 Mar 2016 10:54:58 +0530 Message-Id: <1459315498-29044-1-git-send-email-shivamurthy.shastri@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [edk2] [PATCH v2] OptionRomPkg: Ax88772b: Fixing compilation X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: fathi.boudra@linaro.org, edk2-devel@lists.01.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" error: pNicDevice variable set but not used Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Shivamurthy Shastri Reviewed-by: Ryan Harkin Reviewed-by: Jiaxin Wu --- OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/SimpleNetwork.c | 2 -- 1 file changed, 2 deletions(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/SimpleNetwork.c b/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/SimpleNetwork.c index 9eeb61f..c061a6b 100644 --- a/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/SimpleNetwork.c +++ b/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/SimpleNetwork.c @@ -700,10 +700,8 @@ SN_ReceiveFilters ( EFI_SIMPLE_NETWORK_MODE * pMode; EFI_STATUS Status = EFI_SUCCESS; EFI_TPL TplPrevious; - NIC_DEVICE * pNicDevice; TplPrevious = gBS->RaiseTPL(TPL_CALLBACK); - pNicDevice = DEV_FROM_SIMPLE_NETWORK ( pSimpleNetwork ); pMode = pSimpleNetwork->Mode; if (pSimpleNetwork == NULL) {