From patchwork Mon Dec 8 21:54:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 5458881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3E9649F30B for ; Mon, 8 Dec 2014 21:54:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FE8220115 for ; Mon, 8 Dec 2014 21:54:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B94FF2011D for ; Mon, 8 Dec 2014 21:54:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xy6E8-00054Q-9n; Mon, 08 Dec 2014 21:52:20 +0000 Received: from mail-pa0-f53.google.com ([209.85.220.53]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xy6E3-0004zG-RJ for linux-arm-kernel@lists.infradead.org; Mon, 08 Dec 2014 21:52:16 +0000 Received: by mail-pa0-f53.google.com with SMTP id kq14so6004514pab.12 for ; Mon, 08 Dec 2014 13:51:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SPrlEZ6c3F1S6rAEoNAKaY7M1b10ymJVS/RApVIUmxY=; b=lmmmrytMpzo00hjqzSETu1JX67ZtFdiJwvWz0p5fc2w8kwAdthzmGlrPv84gw8rp0d 7UIDwhwxb0/xoCTpxASM3NlLgEv43cQdNRIyud5rmSMVOp4RVU7Mf9FXLeuLGzUWlNb3 OEWD8qkgb3KUV1UTYSMTDL5k8HhYLBKbp5ZssWDP1kHxUtqPuNZU4kZ0f5wxqRER6q1S JJsd/OV8EBGktWY5PLtzZFQ2eEx930fqZsCQJDI+YFfdHNZLOiYraXHBZtn6+mxZn5PG 8NofcPCyqdlKcXafp6NrAgvGalB8OxeLP7dRZDDVDgLfdcxnN2SLqj/fhwLG8peH+qdP AE7g== X-Gm-Message-State: ALoCoQm0tY5V0qyRdPReqnWH0eCG0zD27QGJiAIr1CRV9yBw8URHqXd+MgIVgS+8hgt+RughWFkL X-Received: by 10.70.133.72 with SMTP id pa8mr24343613pdb.59.1418075513049; Mon, 08 Dec 2014 13:51:53 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by mx.google.com with ESMTPSA id qc8sm37347131pdb.70.2014.12.08.13.51.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Dec 2014 13:51:52 -0800 (PST) From: Olof Johansson To: mturquette@linaro.org Subject: [PATCH 1/2] clk: bcm: kona: don't return -EFOO as bool Date: Mon, 8 Dec 2014 13:54:04 -0800 Message-Id: <1418075645-14571-1-git-send-email-olof@lixom.net> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141208_135215_910532_513304B0 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Olof Johansson , f.fainelli@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Found with sparse: drivers/clk/bcm/clk-kona.c:1255:16: warning: odd constant _Bool cast (ffffffffffffffea becomes 1) Signed-off-by: Olof Johansson --- drivers/clk/bcm/clk-kona.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/bcm/clk-kona.c b/drivers/clk/bcm/clk-kona.c index 95af2e6..53fca77 100644 --- a/drivers/clk/bcm/clk-kona.c +++ b/drivers/clk/bcm/clk-kona.c @@ -1252,7 +1252,7 @@ static bool __kona_clk_init(struct kona_clk *bcm_clk) default: BUG(); } - return -EINVAL; + return false; } /* Set a CCU and all its clocks into their desired initial state */