Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp153876iol; Thu, 9 Jun 2022 00:37:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyomaS8gMokw+N/5k8RDxt+8nXU5xLCSKz7pjWlYblwuxEDsJ6Q8b1yGoEvob5IqveqPmtp X-Received: by 2002:a17:906:1193:b0:70d:cf39:a4db with SMTP id n19-20020a170906119300b0070dcf39a4dbmr29365062eja.44.1654760262249; Thu, 09 Jun 2022 00:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654760262; cv=none; d=google.com; s=arc-20160816; b=QHaVKr4IKv1KqE1IoSdSaO8l4l8GSnGSggofaNKqQyEthrA7EIoc5Kqjo+kNUc5YKP Eau3N0YQhZaAYswMF9na7x5Vd2iA/KSxnyr5iUTke+I23ux/c7i8iNPN2TrjHjQiTIU9 X16ltodlGjCSUi/bud+KVeAhWHw7AK0GitgYToWTtpxBtDvqjC+LkapLplCl7i/L/yIG PyU9kagfrQ3EnrmFEwXh6+EIncQRrcgc4uIOaHtcECxEDSrJajm7E6ZFELAjw015utqA 54GXc6CWlGk5s9a4F3PKZuuUkQUaOm4CPCIQnTBZBIfZ4etPLAG4TDzWrLx/hYy6p8V0 DUvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=O/ewG+IPXcNmyNRMjYMjKHTIdZ2O/Wc6+1dmG2wrGE4=; b=bVVRh0RAZIrdl+qwcquvkr2kieEKANaFhKvqUidXMyjwW/hobl6J3faMmt7//vCRxS zUYeXNGampYf6ZsmPWo7SGmUY/zYziWgJZxSJRfQwdCgUjmbXk0ezWJXsoX6h+Hyo2Y2 6gw+v+yDiJf/Z1TbZyP7APSkaWkNZvr/bs0EXuWkoLX0QYBDOFkb4Q0WfR64dU45m7AJ lkgpB5X3FVvXDTsGA3fFXSZbMVJWGGYzXGsimmacIWJOQ7Il91LryDWPe3P3wsZPpxZT 9JK2wtYf6eSSgNllTxEKclUA29GsysC8nj2HWgkDwrPyup1MoQfMLEll5s6vJoxNgHmU W1EQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs11-20020a1709072d0b00b0071172c07e66si16663740ejc.603.2022.06.09.00.37.16; Thu, 09 Jun 2022 00:37:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238490AbiFIHNA (ORCPT + 99 others); Thu, 9 Jun 2022 03:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231128AbiFIHM6 (ORCPT ); Thu, 9 Jun 2022 03:12:58 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2160E2428ED; Thu, 9 Jun 2022 00:12:56 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VFrcIPJ_1654758771; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VFrcIPJ_1654758771) by smtp.aliyun-inc.com; Thu, 09 Jun 2022 15:12:52 +0800 From: Yang Li To: krzysztof.kozlowski@linaro.org Cc: andi@etezian.org, broonie@kernel.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next v2] spi: Return true/false (not 1/0) from bool function Date: Thu, 9 Jun 2022 15:12:50 +0800 Message-Id: <20220609071250.59509-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return boolean values ("true" or "false") instead of 1 or 0 from bool function. As reported by coccicheck: ./drivers/spi/spi-s3c64xx.c:385:9-10: WARNING: return of 0/1 in function 's3c64xx_spi_can_dma' with return type bool Signed-off-by: Yang Li --- drivers/spi/spi-s3c64xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 82558e37c735..28e7b7cb68a7 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -382,7 +382,7 @@ static bool s3c64xx_spi_can_dma(struct spi_master *master, if (sdd->rx_dma.ch && sdd->tx_dma.ch) { return xfer->len > (FIFO_LVL_MASK(sdd) >> 1) + 1; } else { - return 0; + return false; } } -- 2.20.1.7.g153144c