Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp189599imm; Tue, 28 Aug 2018 20:04:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbSOihCEokdvRxcu+olhGz95SplLJAUyxVuFy1CskNFFAnIrPTg6I5nUMH2tb434DpRpAdO X-Received: by 2002:a62:d74e:: with SMTP id v14-v6mr547842pfl.88.1535511894733; Tue, 28 Aug 2018 20:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535511894; cv=none; d=google.com; s=arc-20160816; b=NG0rVK+nueC10UkroURqZdNR0ecjyaer5EV0xtU78KjQsfWU8xGsQxNe/AE2ykRInB jXY/aRQ46y58fxov2mEEb0W5fzTEpJ85BxkosWsOQrXX5MGAftduzjcbCnGRc3UhP7q0 0jAGKk1etmRhcmC30eTvhQLsjOnTWD2m0tJo3gCpGNA/c7FrmlefIyXZuKOZKky/4wkH IfVhaKlImCzvjEJg+RcS2Ov2NTfqqHFCqDlYmvZe6XsyXid2CY0E6zp+Sr8CGnO7S/RE IBDYACfxwoEvxzeMnQ1Ki9d+djEyWAMG6ZMBIeQDtAvPzkfksoFk6x7TSy8r+gpG7xQ+ zbaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :arc-authentication-results; bh=ztNt1sbGvphw0u5K7c4dsX/fr9LXFjBhThwWGE92RbM=; b=vn4t+2gNUlRKkHqNlmeIA3teG+ooqfKnbYeQJAYzu/uUeJxXEwlq+F4BOeCA6zFwmY FehRgo7vMt4BMxQw57dMH+lHbGMWO9wqX78tUSU6njDjUpYsKhSUoHg4xO6OVUhfjcPn oohw9fcCUueed3OviCzxH14pI2L/KMYSmyBRNd5B6lkMUYrSjpUxjd16pTOpDVtU2ygb K8A3QnRVXTpLzr8tw2yufOL8oks00UkpBydOWaPqnbQgLx8NQuE2piqT3NLH0LodV/6P OJ9EdvkxP3CKXibpdcxPWHumAqyUq5wIj4PjxRil8lbA7yU2SPWmdHz6XNknc8jcXwhL DHfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c18-v6si2609887pgh.530.2018.08.28.20.04.37; Tue, 28 Aug 2018 20:04:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727426AbeH2G6G (ORCPT + 99 others); Wed, 29 Aug 2018 02:58:06 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:37526 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726759AbeH2G6G (ORCPT ); Wed, 29 Aug 2018 02:58:06 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.15]) by rmmx-syy-dmz-app05-12005 (RichMail) with SMTP id 2ee55b860cfbe8c-3c8e6; Wed, 29 Aug 2018 11:03:23 +0800 (CST) X-RM-TRANSID: 2ee55b860cfbe8c-3c8e6 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.105.0.243]) by rmsmtp-syy-appsvr08-12008 (RichMail) with SMTP id 2ee85b860cfa1ce-9d9b1; Wed, 29 Aug 2018 11:03:23 +0800 (CST) X-RM-TRANSID: 2ee85b860cfa1ce-9d9b1 From: Ding Xiang To: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: csiostor: Fix bool function return value Date: Wed, 29 Aug 2018 11:03:20 +0800 Message-Id: <1535511800-25075-1-git-send-email-dingxiang@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org csio_scsi_itnexus_loss_error is bool type, so the return value should be true or false. Signed-off-by: Ding Xiang --- drivers/scsi/csiostor/csio_scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/csiostor/csio_scsi.c b/drivers/scsi/csiostor/csio_scsi.c index dab0d3f..aae7abc 100644 --- a/drivers/scsi/csiostor/csio_scsi.c +++ b/drivers/scsi/csiostor/csio_scsi.c @@ -147,9 +147,9 @@ static int csio_do_abrt_cls(struct csio_hw *, case FW_ERR_RDEV_LOST: case FW_ERR_RDEV_LOGO: case FW_ERR_RDEV_IMPL_LOGO: - return 1; + return true; } - return 0; + return false; } /* -- 1.9.1