Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751046AbcBFBGO (ORCPT ); Fri, 5 Feb 2016 20:06:14 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:33584 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbcBFBGN (ORCPT ); Fri, 5 Feb 2016 20:06:13 -0500 Date: Fri, 5 Feb 2016 17:06:11 -0800 From: Kees Cook To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] param-convert-some-on-off-users-to-strtobool fix Message-ID: <20160206010611.GA22498@www.outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This converts a missed __setup return (and silences the build warning it was causing). Signed-off-by: Kees Cook --- arch/powerpc/kernel/rtasd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/rtasd.c b/arch/powerpc/kernel/rtasd.c index 0ae5cb84d4e2..aa610ce8742f 100644 --- a/arch/powerpc/kernel/rtasd.c +++ b/arch/powerpc/kernel/rtasd.c @@ -592,8 +592,6 @@ __setup("surveillance=", surveillance_setup); static int __init rtasmsgs_setup(char *str) { - kstrtobool(str, &full_rtas_msgs); - - return 1; + return (kstrtobool(str, &full_rtas_msgs) == 0); } __setup("rtasmsgs=", rtasmsgs_setup); -- 2.6.3 -- Kees Cook Chrome OS & Brillo Security