From patchwork Sun Apr 5 22:32:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?J=CE=B5an_Sacren?= X-Patchwork-Id: 458305 X-Patchwork-Delegate: jeffrey.t.kirsher@intel.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 4BB881400A0 for ; Mon, 6 Apr 2015 08:35:28 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=HM7H2A0V; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 150248D391; Sun, 5 Apr 2015 22:35:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c+cBP3pPLf12; Sun, 5 Apr 2015 22:35:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7A5D68C21B; Sun, 5 Apr 2015 22:35:27 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A492A1BF984 for ; Sun, 5 Apr 2015 22:35:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9EA3D8C22D for ; Sun, 5 Apr 2015 22:35:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 41+v1piM7KYy for ; Sun, 5 Apr 2015 22:35:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5AAC98C21B for ; Sun, 5 Apr 2015 22:35:25 +0000 (UTC) Received: by obbec2 with SMTP id ec2so20147339obb.3 for ; Sun, 05 Apr 2015 15:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=wzte6n78N8FutuTSwIE6mEbitkVWvBppxUzWT3VLVDg=; b=HM7H2A0Vh40/zLSJM13+OC01w5Cv6xaP1T6TexxcXOc5Jh6xwe16QiT8NfcfyEz1hM xc39Q5jlL6EaIeBGj1cVygsQvTYC4CBXYrp2vwEnuCDMYGt2DMJ/SXF2C7Jg6CdONSNn 8CdIvjuRPX1PCkmfKVwo4vPBnHsrESWbpPcO5a764NWySpDR9NHFVMjoJ3fg/+m6k0cY xKR5eSk1vr8ZCNeIWKiK/FdBpWvESARDmGxDp8fX+Y9ql19csw2sRc1gxDPOBim5f61g Z/bBB4D8Ub6+MzmAckYz6Bbg2lJzx8fEIMhT9mPByaEGdcQS0lWD/7M0GUf7Mlud2fiG dlng== X-Received: by 10.60.133.207 with SMTP id pe15mr14931905oeb.54.1428273324757; Sun, 05 Apr 2015 15:35:24 -0700 (PDT) Received: from localhost ([76.8.208.219]) by mx.google.com with ESMTPSA id xk11sm2294692oeb.6.2015.04.05.15.35.24 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Sun, 05 Apr 2015 15:35:24 -0700 (PDT) From: =?UTF-8?q?J=CE=B5an=20Sacren?= To: intel-wired-lan@lists.osuosl.org Date: Sun, 5 Apr 2015 16:32:04 -0600 Message-Id: <1428273124-14321-1-git-send-email-sakiwit@gmail.com> X-Mailer: git-send-email 2.0.5 Subject: [Intel-wired-lan] [net-next] e100: don't initialize int object to zero X-BeenThere: intel-wired-lan@lists.osuosl.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-wired-lan-bounces@lists.osuosl.org Sender: "Intel-wired-lan" From: Jean Sacren 'err' will be overwritten so no need to initialize it to zero. Signed-off-by: Jean Sacren Tested-by: Aaron Brown --- drivers/net/ethernet/intel/e100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c index 05f88394f9a5..75a11ea7a9d6 100644 --- a/drivers/net/ethernet/intel/e100.c +++ b/drivers/net/ethernet/intel/e100.c @@ -874,7 +874,7 @@ static int e100_exec_cb(struct nic *nic, struct sk_buff *skb, { struct cb *cb; unsigned long flags; - int err = 0; + int err; spin_lock_irqsave(&nic->cb_lock, flags);