From patchwork Thu Aug 10 01:51:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 109756 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1687536qge; Wed, 9 Aug 2017 18:52:42 -0700 (PDT) X-Received: by 10.98.157.206 with SMTP id a75mr10396485pfk.169.1502329961969; Wed, 09 Aug 2017 18:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502329961; cv=none; d=google.com; s=arc-20160816; b=stpL/EIrhWXTYtBFCBhdDawloY2SY4qcB3n5+t6FruOI9+MkJ8uuL2ASiGhDD/CK1J R4EQaCYxwNjtWDTJFIDWTTLd+D0QhOw3cYTqxXe/iIaD864n2hBuyDusSSIW0mE/6Idz SyKtTx9d/+WnX4IbT2y8Rrdf0a1+DmXoBb6nU5mtmtaieLpzlWDE5VWN75wYynaPw+0O sDsSvDSAWy5uok/4bqAOMWVJI3COh1J+B3jJLPjr4su6f1zwgxpDSPRHpzm3oA5n2es0 rFm6W1+9LM4uq+0BtYX1jYzyRGErCR0w/rmI/4Vv6hKVu1yKBIY6tqonzRNnhwtEtTeb idUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=fGimhgdrNQhunc7kVZmgszodIx4YtT+cIdPnN36OjGc=; b=pkXAS1V4ew70rT3R7jYPwMLOida2bJbaaSMeKEgCw9wv9UJexUphc1TaioQvIWQUXX HRmrMPzmK7v5HemcI8Z0XVbvwgBYLl6mxElEe5n+Y5DXnQ0ONskAN7paD7VqgclNAiwt eKtLFGxyBD/SgRcpE4qdO96LPj7nWy/hqYmIWAYEUaEMFz3IQuZzuAHjKbnk27VChgNU HII7D6jx3UyOSPSlRL9j7aban+w+pbxyd7u+KqlGEvqsWb0NAuDBckO74yrCiKBhNWuh 1b3+Ytoj0/xDKHOHXPQOHS77Il4rJgP1uooGdp9rGM1rSzOfCtcdGxoSJopRj8dx+EKP wuNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=fzE3kax+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si3647554pld.687.2017.08.09.18.52.41; Wed, 09 Aug 2017 18:52:41 -0700 (PDT) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=fzE3kax+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752348AbdHJBwi (ORCPT + 25 others); Wed, 9 Aug 2017 21:52:38 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:62784 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752169AbdHJBwg (ORCPT ); Wed, 9 Aug 2017 21:52:36 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id v7A1pxDJ021379; Thu, 10 Aug 2017 10:52:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v7A1pxDJ021379 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1502329920; bh=fGimhgdrNQhunc7kVZmgszodIx4YtT+cIdPnN36OjGc=; h=From:To:Cc:Subject:Date:From; b=fzE3kax+2ci9u2HLzr9HcaegcNDyLbv1d2hoAu+iK61SUZV9zJ8ZctEY4ZgI2cUga awlstfmZrt40KCKEhf7jzrYffjGwHqf8MfDpkBG5wrewk2QyGfIfsxVtrUn8wwlZnf CFZvQ5E/dNfKmDcakGmmCpsEFDppesOPWolFfKFHoXrpl7nEzbF3zNYW+NgnZ6RyUX J+r7obBtttvhBXppvFIrWxNX8LwARMaODvxU9ZijndvqObpNEfb2PAAWAMkFnF4aMw dT+lAryRb43uf/ms4LQJSiyZVeoSOmqeYyrDMNmomLSi7hYApxnxFIYFN5PYvlgoIE A84PK+8AMIcUA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Thomas Gleixner Cc: Jason Cooper , Marc Zyngier , linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH] genirq: remove redundant ->handle_irq assignment Date: Thu, 10 Aug 2017 10:51:54 +0900 Message-Id: <1502329914-27098-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This function has "desc->handle_irq = handle;" a few lines above. The second assignment is redundant. Signed-off-by: Masahiro Yamada --- kernel/irq/chip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.7.4 diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 51ccc77f1fe0..33fa2a95d768 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -931,10 +931,8 @@ __irq_do_set_handler(struct irq_desc *desc, irq_flow_handler_t handle, * chained interrupt. Reset it immediately because we * do know better. */ - if (type != IRQ_TYPE_NONE) { + if (type != IRQ_TYPE_NONE) __irq_set_trigger(desc, type); - desc->handle_irq = handle; - } irq_settings_set_noprobe(desc); irq_settings_set_norequest(desc);