Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp139877iol; Thu, 9 Jun 2022 00:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwip2tymVoyrw07ew+XRzNgmyYz1UTCVYLaGGxpqJ9lyU2cAtcEmDzkNL5urzkuEG/JVTp6 X-Received: by 2002:a05:6402:3551:b0:431:51e1:856f with SMTP id f17-20020a056402355100b0043151e1856fmr24196355edd.323.1654758865940; Thu, 09 Jun 2022 00:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654758865; cv=none; d=google.com; s=arc-20160816; b=BSO8zwWt/Vbnq7sRnhpd4pemfzQ9xV1zUjlAFJp+0WK27URixHnp92pQiZPn2fqrbn amScF8/zxse+MTLy8fI2Q4mZgffS84uX5sBcmfVK4Be2PqdTzaLpg3PNkOlYkf71m3gd TCb9ScnEJBbrQE0IvM3TcrMWeHkP0WGSHpIN0HrT9HkP5INwEur6nyjoo75TXn20SUd7 kunwHrTy8SQh54AFFxFawcn99XFjCPzcfR4jIfYbegNxQiEmlkQBa+I9O/+ndqSS6S5D /2SaIp9Msbw+rQgIrGIyanvAdIpt7Prl0LzfNq5FTbj+96KXuwVKxlgwl3jg+Ja/V1hZ wE0w== 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=mJMWOyBVNEEId09SqyHyYJR2XcY6GPp4zwEOQtsi38Y=; b=Cd2V7tfox3zUPjbpdocubJUU4TT9PY8dvcf2KMZI9OM1Z9bzwEwMbZsMdxNpu54bLV 2DY59uJuWLgnDb9MHDYmsyUwkMFdSZie1aP4ZpFg/lNvdeKfXkme9JXtm+iLsvfJVNOW /Yaik2UWA2Yb44QxRzrZVW/6edPruXulJHjtBJQJPPQvSEj9AX9fk04RYbEeaAKjMWMh ppIcanCHDjI9T2LE3CfmsS7bmBo5fct7VyDI8Jgh7AdAv7euuQ7fglypF555+yP2ni6K 2He6RrIZ6W8UbHvc9XDyj1Zu6gau6oDvI78elmN212CSdASOBHa0gCtWFRcoyd0j4Tkr qktg== 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 u12-20020a17090657cc00b006e7d38a8843si12343403ejr.443.2022.06.09.00.14.00; Thu, 09 Jun 2022 00:14:25 -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 S229618AbiFIGDm (ORCPT + 99 others); Thu, 9 Jun 2022 02:03:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238830AbiFIGDa (ORCPT ); Thu, 9 Jun 2022 02:03:30 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC7AF1EEF7; Wed, 8 Jun 2022 23:03:27 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VFrGHUV_1654754604; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VFrGHUV_1654754604) by smtp.aliyun-inc.com; Thu, 09 Jun 2022 14:03:24 +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 , Abaci Robot Subject: [PATCH -next] spi: Return true/false (not 1/0) from bool function Date: Thu, 9 Jun 2022 14:03:23 +0800 Message-Id: <20220609060323.106095-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. This fixes the following warnings from coccicheck: ./drivers/spi/spi-s3c64xx.c:385:9-10: WARNING: return of 0/1 in function 's3c64xx_spi_can_dma' with return type bool Reported-by: Abaci Robot 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