From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932309AbbC3XwH (ORCPT ); Mon, 30 Mar 2015 19:52:07 -0400 Received: from smtprelay0242.hostedemail.com ([216.40.44.242]:48775 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754058AbbC3Xr3 (ORCPT ); Mon, 30 Mar 2015 19:47:29 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1345:1359:1437:1534:1539:1568:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3865:4321:5007:6261:8603:10004:10848:11026:11657:11658:11914:12043:12517:12519:12555:13311:13357:14394:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: rate27_240d6125ca609 X-Filterd-Recvd-Size: 1427 From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Guan Xuetao Subject: [PATCH 10/25] unicore32: Use bool function return values of true/false not 1/0 Date: Mon, 30 Mar 2015 16:46:08 -0700 Message-Id: <7a9814ae42fd64a7df59440f58c3acf1022042e6.1427759009.git.joe@perches.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the normal return values for bool functions Signed-off-by: Joe Perches --- arch/unicore32/include/asm/dma-mapping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/unicore32/include/asm/dma-mapping.h b/arch/unicore32/include/asm/dma-mapping.h index 366460a..86f7962 100644 --- a/arch/unicore32/include/asm/dma-mapping.h +++ b/arch/unicore32/include/asm/dma-mapping.h @@ -57,7 +57,7 @@ static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) if (dev && dev->dma_mask) return addr + size - 1 <= *dev->dma_mask; - return 1; + return true; } static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) -- 2.1.2