From patchwork Thu Nov 30 15:43:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 10085131 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AD6C260311 for ; Thu, 30 Nov 2017 15:45:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 945572A13E for ; Thu, 30 Nov 2017 15:45:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 865F22A187; Thu, 30 Nov 2017 15:45:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44FB32A13E for ; Thu, 30 Nov 2017 15:45:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752933AbdK3Pob (ORCPT ); Thu, 30 Nov 2017 10:44:31 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33873 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752031AbdK3PoC (ORCPT ); Thu, 30 Nov 2017 10:44:02 -0500 Received: by mail-pg0-f65.google.com with SMTP id j4so3151355pgp.1; Thu, 30 Nov 2017 07:44:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gL3nY7mYK+SWKmOb1csdebApUEU1YWkZQpCSHnoosEo=; b=kZkUfnLOSZA1tQ3LHmKxCSZDB8rraggr3dMMxmmTYGa7KaP2JTaF7+KB5lxb8xzLUU gX9YS5t/1S3eZs1kF2BCWDgDBqCTUSaYZ0M8D+ugQ6nr9FYBlCaKrs1UwuvMo/4vmAIP UVNz88XEvlJrVO1iaNQwyUEU3hNbwNgiuKMYAI/yv8NtYPVBz+euD081p+z0/pE+npK2 /SFdTIbbVhoLbCFVN0fkiLj4PZRoYa/LpZJYEwZdEULNEeZhL+N6gDqGJZJ0A1whO1fL 1NRH6E4wcXs6bSfa21UNhYYjnZEWr2FHuRPiWXKkaHmtx0bi4ODFyWGJhkyPd4dZKook PRGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gL3nY7mYK+SWKmOb1csdebApUEU1YWkZQpCSHnoosEo=; b=BxF541zIRBp6BvwsCB8iv57IgyARchJIUKfCwxanlte+BU5HH986z/kxULEQleMnyY HS5VDKmk1+CphIQvwfpANBRk/ESjL8Mt6HGeqY9D5+NK7MmS8HiT+eOzQTZw3oZPQbHN M7X5EOfNR9u4t3lpwDeJTlQFl0rTHEnscXQnm/yK4qZwBvPlr7duQ9pvfiGgaUydn1Jo pZVhLhUuJTkjf0QlOfFGeCVGy+Dbg3DbSMV3MStPapTIGcmBsCZpubMUh+kyxvHrR4q0 nnReBzkPfUXcp5HyrxsQF9RcnPp1sSFSKq7sEk+Ax31JwyxB11RzoueVAdOFqzgRFEIX 1wtg== X-Gm-Message-State: AJaThX7eUqBDEWeQ/E/Hk6JUYVUHQSEzVHsiM+L/6xp9K6W29VV8iVCD BXspiFQaBWsy63t8s9JDdPQ= X-Google-Smtp-Source: AGs4zMa18yGw790KuJVoJWF9l1B5llZd7Aa+A7XR0hsw4kVvz0zir9D5E/M40goDpBQ+MMU6FpsJSw== X-Received: by 10.101.70.70 with SMTP id k6mr2735090pgr.292.1512056641986; Thu, 30 Nov 2017 07:44:01 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id f79sm8687440pfd.45.2017.11.30.07.43.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Nov 2017 07:44:01 -0800 (PST) From: Arvind Yadav To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, samuel@sortiz.org Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, netdev@vger.kernel.org Subject: [PATCH 3/3] staging: irda: Remove unnecessary 'err' initialization. Date: Thu, 30 Nov 2017 21:13:36 +0530 Message-Id: <1512056616-21065-4-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512056616-21065-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1512056616-21065-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Here, variable 'err' is already initialised. So no need to reinitialize. Signed-off-by: Arvind Yadav --- drivers/staging/irda/drivers/pxaficp_ir.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/irda/drivers/pxaficp_ir.c b/drivers/staging/irda/drivers/pxaficp_ir.c index a97ce04..6c77370 100644 --- a/drivers/staging/irda/drivers/pxaficp_ir.c +++ b/drivers/staging/irda/drivers/pxaficp_ir.c @@ -807,7 +807,6 @@ static int pxa_irda_start(struct net_device *dev) * Open a new IrLAP layer instance. */ si->irlap = irlap_open(dev, &si->qos, "pxa"); - err = -ENOMEM; if (!si->irlap) goto err_irlap;