From patchwork Sun Aug 5 23:03:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 1276011 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 5D14CDF27F for ; Sun, 5 Aug 2012 23:12:38 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sy9wg-0008QV-O4; Sun, 05 Aug 2012 23:09:15 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sy9wN-0007Wt-AR for linux-arm-kernel@lists.infradead.org; Sun, 05 Aug 2012 23:08:56 +0000 Received: by mail-pb0-f49.google.com with SMTP id rq13so4891620pbb.36 for ; Sun, 05 Aug 2012 16:08:55 -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=vXTiiqGy0+Om2QwGK/wzayEzsyvX9Cm8uDfGLQ15TGw=; b=IB4WZn81Sd64L29AuRdLJ5BBGLiEvZVrcfaX8W1Kuah5L+F819sZHU7OEPuHQ4m+fn g+1H+TzAALbgD0cHwZpdNAmsoRGXcKpF45Rxb43MMu5n7qPL4CiWe2zec1mD70/ajajV CbDhPcIz/8Crb7R+oVj9SJ18kky973eTIXoPyxxgXnftr8nECwkNlNTx2hS7vqrPW/qs xcyuAqeltu5DL/ueQBrr3vJwRFcI/5e31ihHXUqExmUbMbvVLmlrdDyszc0vB0rpe/XP eVDjL5/GlvqiluadxnZeT8MOn2fD4Obr1BMWyx40U/2rkuIy0wYia2NrONLmOEL3mx1D 9aag== Received: by 10.68.197.168 with SMTP id iv8mr14482208pbc.61.1344208135001; Sun, 05 Aug 2012 16:08:55 -0700 (PDT) Received: from localhost (m9f0536d0.tmodns.net. [208.54.5.159]) by mx.google.com with ESMTPS id pa6sm4169683pbc.47.2012.08.05.16.08.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Aug 2012 16:08:54 -0700 (PDT) From: Anton Vorontsov To: Russell King Subject: [PATCH 9/9] ARM: FIQ: Make show_fiq_list() return void Date: Sun, 5 Aug 2012 16:03:39 -0700 Message-Id: <1344207819-3415-9-git-send-email-anton.vorontsov@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <20120805230238.GA1663@lizard> References: <20120805230238.GA1663@lizard> X-Gm-Message-State: ALoCoQmnDote8g77ow8cvWEsdXqyJZF+TBA9ZbfpWh0C7vrtu8omCLSCkAUNuLGppicyj0Jhtfoe 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.160.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)