Received: by 10.223.176.46 with SMTP id f43csp2507919wra; Thu, 25 Jan 2018 10:55:40 -0800 (PST) X-Google-Smtp-Source: AH8x224c7HFv8ZpjqxU5K/eRpr19OCr9D881OBpCAmzMvtgAaknKfa0tRYINp3Q4hecxB7eDdxvQ X-Received: by 2002:a17:902:8d97:: with SMTP id v23-v6mr7761238plo.248.1516906539923; Thu, 25 Jan 2018 10:55:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516906539; cv=none; d=google.com; s=arc-20160816; b=xOphnDuPIBPKpixyOcU06daupsLm2p4WPu3v3Hz0Wi5+ke8Q8uMUPXcYVA2E42XuWt Bf0IzDbDaUXlLnJp9FPpO3w0Q8iDeeb1zRVsS0okmEbx58ItCIPFpRwjSOtEFWF7H9xT 1rgpaPMw/RpPrsAoTOXWAujLj1DbL/gHUHYD7P+YVz2kn3Ug6Nlq4HZfvv9qc4K251E9 oy5chx0E9v3q/EGlud8bL9FLYGMme7uhD8eYOuLMzqQN5tZQHhrH5w0PZ574q9HAEGl1 cLpJkJpeE/zNg6SLS6zbGPRP7RiFSe2AqSlzF8EtD2dzLBdmuNzK2VEYlrE13+hPPFgT 8Dbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=l1byHWtgI2HAZG+8PCIisbMOFOEwM4VqcFnrzd1J6uk=; b=R93nI5omQRhXL2sOaeT6cXyfVeRPSy5XZOp5qgujiAUmFmhb5EDxoaY4v5uNxm3Fub SjzNMWfDtReYbIgY1w9tCrSy+Sv2XTdgOpT8PUZPMihwr+scbltjTotDJmqQPr+i1oyf PAn7kF2yAZfHSABXBp59DGykyCQowJHygHqhD9uM6SbIQiYLQYgQNsE3LvBfNHR4csgB ptlY23PvlGprvmdJUEZiBqO+G/0RQikNXQVsQs29GTOsKoARZ0iWReqMeWfcE98xV7qk EZW3W4P7SIKHDxdvyMXg/1kH1TeGw6uYOuL3qQ6r8sSxLuKG04ILfPJQkxbljBJeP4Fj G0Kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si1887930pgc.569.2018.01.25.10.55.25; Thu, 25 Jan 2018 10:55:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751259AbeAYSzB (ORCPT + 99 others); Thu, 25 Jan 2018 13:55:01 -0500 Received: from mout.web.de ([212.227.15.4]:49611 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751106AbeAYSy7 (ORCPT ); Thu, 25 Jan 2018 13:54:59 -0500 Received: from [192.168.1.2] ([92.227.186.52]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LoYJu-1fFnAx1Kx8-00gXXt; Thu, 25 Jan 2018 19:54:49 +0100 Subject: [PATCH 3/3] Input: ims-pcu: Delete an unnecessary variable assignment in ims_pcu_setup_gamepad() From: SF Markus Elfring To: linux-input@vger.kernel.org, Arvind Yadav , Dmitry Torokhov , Joe Perches , Johan Hovold , Zhen Lei Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <903a941e-a562-0456-da6e-9a801254c853@users.sourceforge.net> Date: Thu, 25 Jan 2018 19:54:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:OAkNhr6gHUdjWEEJkKXBAiwaymueRKQW49mqY9E2GXVcR6j3UKF GSqH01njUuv08YR/XHDCRl8AArvZDAGlFZ/5hyhz8K7xiHYMRttr9pLzcPKbc2eKhAvR6aW h1tn7IwrwCOFltERGrxZV7mzDZQJ9QfCUQcKlnAgJsDMxFny3z+gdO/siMWOqt8KoBpqnhf mWISHwrbssXBCFBjHsWhg== X-UI-Out-Filterresults: notjunk:1;V01:K0:ii9t0uS8Urw=:y4EduzAyb5wO5/JUp3hDFH VfnfBaxEIFpU7DUSyghN0XJw8RwZZYSUXt4mYWOb++DiNw4q9qzEsrE2wkQMCiaHrj6bwADLd Nt1KH6cGkONOYA7oeiP60mgttGeyjEY6mOiSOlYJAbDTCccx0A9yXYNp3t6n+RVVZZOZDNN0P Zlm3P7WNA1gsCuIL4+ioGYQ+qiZD517H2YdvzmK/6sotS4cvaA52z/qEIZxSuN7Aj4Vt9HxHt jZiezAibuF6A3ZKr+X4psUmxEIhHHl06clNT6evePfd6AJgH8E3+WR9hZePT6l1LMkr+F5Ki4 tRVQIOb5ypmkDXQ2tRqWJ/0KX1NSIcZDNr1utGvBGrdW6hFEEorDNqusmvLtyUS2nthQqeXEc evP9fTelIAIs22wt5eLULxTdgy/ePs2/shV9O2kVfgVm+cf2R8bfq/6TwMb2mcY4rJbcN70xO Z6cvBYlGFh5EyPUhgBJHkpyYfbzC0XDClu6SgQ/TGb0HdlOmTuuoMXYmqcE0WcodEg81ZAGfe hV8MmJjgNgDwQpPvcG5vQP4nHahLVnlWiIcrY7U8J7xHUrOoTkpnI7y/xhav3JZ6h1ERnov7S s32OOHf34HKHANNlg8P2Yjh0cIcITF4KV6a4rhnTBEWA2uXZxedfRhWY8HkRgfSDmPzw23Xc5 Tgu92opVkDjSvNYbogrX1D01P0UflFyAusxubr3wTQfq8pSx6R2KK0EMLqjwxDfvJyjAmnHUy WHxdwZOmsO9bIG8pp9rfxGhIQioLoXcjTHluH6InOIjvhA6CWupzGKEMU4xLft/kg5/2q+Al+ HgRxoiLzSzAvYQ/hlvzWtBiSgFOrDtR4hvBJioNsKl5rXCZMaA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Thu, 25 Jan 2018 19:37:34 +0100 An error code was assigned to a local variable in an if branch. This value was not read again before it was used by a return statement as a constant value at the end of this function. Thus remove such an unneeded assignment. Signed-off-by: Markus Elfring --- drivers/input/misc/ims-pcu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/ims-pcu.c b/drivers/input/misc/ims-pcu.c index d7778b273151..aa1bb284c714 100644 --- a/drivers/input/misc/ims-pcu.c +++ b/drivers/input/misc/ims-pcu.c @@ -295,7 +295,6 @@ static int ims_pcu_setup_gamepad(struct ims_pcu *pcu) if (!gamepad || !input) { dev_err(pcu->dev, "Not enough memory for gamepad device\n"); - error = -ENOMEM; goto err_free_mem; } -- 2.16.1