From patchwork Mon Oct 15 21:51:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 1596991 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 119BF3FD9C for ; Mon, 15 Oct 2012 21:58:58 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TNsef-0000us-3I; Mon, 15 Oct 2012 21:56:57 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TNscq-0008HX-Ko for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2012 21:55:05 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi5so5498790pad.36 for ; Mon, 15 Oct 2012 14:55:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=zY4PIlPz723fucZV5jO0jVS0ZmdLKZvPqFpGr+bWoYs=; b=FG0cJ7TiseHCoTmcCAvQdnZopqjpcu6OvXIvTI2n4cQdra0t+H6qoqWV7IPXhT/d+i QPB2B8eCgJLhB0vEd2QYIANhum5sG8RkztNkRGSS6XUNxn7sq/1bVEy8FfRpa0YPti/5 +0WNto7rW22Jru+K4w5hg80kR+0ujtl4GIYrxPLlYfrzacWSHMqEg+5Eh+7tBTkxK47j p6/JlThHbKhnZHI737HVHNad6OpKCVay7kcl3r4eaQXLUcD6hn5ydRZBPPdONVdUJwbs txPmkDcRuLC8m0TzdgiMEs50LlqYQAYH7P25Fn2+eZXjYzijw44vRDO1s6fVqn4+TTzF hOrg== Received: by 10.66.86.3 with SMTP id l3mr10814760paz.55.1350338104355; Mon, 15 Oct 2012 14:55:04 -0700 (PDT) Received: from localhost (ip-64-134-230-8.public.wayport.net. [64.134.230.8]) by mx.google.com with ESMTPS id ty4sm9620913pbc.57.2012.10.15.14.55.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Oct 2012 14:55:03 -0700 (PDT) From: Anton Vorontsov To: Russell King Subject: [PATCH 09/10] ARM: FIQ: Make show_fiq_list() return void Date: Mon, 15 Oct 2012 14:51:33 -0700 Message-Id: <1350337894-9744-9-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.7.12.3 In-Reply-To: <20121015214954.GA3352@lizard> References: <20121015214954.GA3352@lizard> X-Gm-Message-State: ALoCoQlRmIid8MxxOqDsVtJ6ouwjz2x8ZkiIxQBU2BiCHdljpOmpdWdxze9WnIoOT4Ck1a70JgNm X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linaro-kernel@lists.linaro.org, Sascha Hauer , patches@linaro.org, Tony Lindgren , Mark Brown , linux-kernel@vger.kernel.org, Kukjin Kim , John Stultz , Ben Dooks , kernel-team@android.com, Liam Girdwood , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The return value is never checked, so we can turn show_fiq_list() into returning void. Signed-off-by: Anton Vorontsov --- arch/arm/include/asm/mach/irq.h | 4 ++-- arch/arm/kernel/fiq.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/include/asm/mach/irq.h b/arch/arm/include/asm/mach/irq.h index 420d211..8be5ba9 100644 --- a/arch/arm/include/asm/mach/irq.h +++ b/arch/arm/include/asm/mach/irq.h @@ -19,10 +19,10 @@ struct seq_file; */ #ifdef CONFIG_FIQ extern void init_FIQ(void); -extern int show_fiq_list(struct seq_file *, int); +extern void show_fiq_list(struct seq_file *, int); #else static inline void init_FIQ(void) {} -static inline int show_fiq_list(struct seq_file *p, int prec) { return 0; } +static inline void show_fiq_list(struct seq_file *p, int prec) {} #endif #ifdef CONFIG_MULTI_IRQ_HANDLER diff --git a/arch/arm/kernel/fiq.c b/arch/arm/kernel/fiq.c index 7be2e74..9bf3a60 100644 --- a/arch/arm/kernel/fiq.c +++ b/arch/arm/kernel/fiq.c @@ -69,13 +69,11 @@ static struct fiq_handler default_owner = { static struct fiq_handler *current_fiq = &default_owner; -int show_fiq_list(struct seq_file *p, int prec) +void show_fiq_list(struct seq_file *p, int prec) { if (current_fiq != &default_owner) seq_printf(p, "%*s: %s\n", prec, "FIQ", current_fiq->name); - - return 0; } void set_fiq_handler(void *start, unsigned int length)