Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753206AbcCYCmj (ORCPT ); Thu, 24 Mar 2016 22:42:39 -0400 Received: from cmccmta1.chinamobile.com ([221.176.66.79]:5853 "EHLO cmccmta1.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752837AbcCYCmV (ORCPT ); Thu, 24 Mar 2016 22:42:21 -0400 X-RM-TRANSID: 2ee156f4a588682-d0959 X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2eea56f4a585ebc-fd204 From: Yaowei Bai To: dwmw2@infradead.org, computersforpeace@gmail.com, richard@nod.at, boris.brezillon@free-electrons.com Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, baiyaowei@cmss.chinamobile.com Subject: [PATCH 5/5] drivers/mtd/nand: nand_opcode_8bits can be boolean Date: Fri, 25 Mar 2016 10:41:55 +0800 Message-Id: <1458873715-3670-6-git-send-email-baiyaowei@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458873715-3670-1-git-send-email-baiyaowei@cmss.chinamobile.com> References: <1458873715-3670-1-git-send-email-baiyaowei@cmss.chinamobile.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1040 Lines: 41 This patch makes nand_opcode_8bits return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai --- include/linux/mtd/nand.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index bdd68e2..dd79eae 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -989,18 +989,18 @@ static inline bool nand_is_slc(struct nand_chip *chip) * Check if the opcode's address should be sent only on the lower 8 bits * @command: opcode to check */ -static inline int nand_opcode_8bits(unsigned int command) +static inline bool nand_opcode_8bits(unsigned int command) { switch (command) { case NAND_CMD_READID: case NAND_CMD_PARAM: case NAND_CMD_GET_FEATURES: case NAND_CMD_SET_FEATURES: - return 1; + return true; default: break; } - return 0; + return false; } /* return the supported JEDEC features. */ -- 1.9.1