Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2140506pxb; Mon, 11 Jan 2021 01:49:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKM+flTtd6wK9mIf0CMjUup9DMX6cv4hLikTgtfq/WUIZBulCPWcRo1o+3Fd/ffxcg7dRI X-Received: by 2002:a17:906:b74b:: with SMTP id fx11mr10180809ejb.410.1610358566587; Mon, 11 Jan 2021 01:49:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1610358566; cv=pass; d=google.com; s=arc-20160816; b=psbcfaCju+bf5WclM/M+CGfWytW4jla6iA4nf4c3p+vzr+qOLN2HEGuwpnjnA0qJsT cW7siE1Ex0/KDQ1Dsc2hY2w9vcKuThdMAbnAjMeS4aePZ61cPvQHhStKQslLbETpIyOr aAFADCdvN/h/EDRk1//PTc7195CQz5PSG23MV/lFl6YJtgwtRWNhDgP0jP7Ut3vIOR3t YkU+e6r2lCLdqiZ2aka2EzTVxFi1lWxelANg4DcYLiheNHb2iNwpAq6o+Cgr8nBa207z bqnkZkLvfb60YwKm0Ht2KeCsB4cvv1SVPFZxgGDPKetfgmCiWBykfq31/xvpz+ljLqBO SfWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=S5ndZupT+KIcVf8SQc8RbC7gz8STwgbX1ub7fDtkNOk=; b=lMXpzgbh+c8JDAgDCcON1C6m/rTOc5Ab/6cLGW2BUClCk9Yfv5HArw6mDD17YOxNfH CsXIaHYzuc8PFyD8v+pvW52Qa1KTKnwLEfMtGrF7SjrVFbhEqPDcUyGavF2zi8Me/O83 l7Ql8zNT/A3CYp5wDbE603L4+MIaYdiFpc1rdT5S6UEIshiEUyjDWsgZbWDtuOkrIj89 zonHO0jOmcBx/bHfEw+wJsdYSRhw5qcdCcPttO+8i3pr+bgGrPptC8ij/9BnbWQkckqU 0bqsqmh7id1pez7ZdSabCIHHSgsRtxV3mZOj4RB1imPin2aHKHcfqheglF2gJw4rprUD NRVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=Zmxb92b3; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b="ARB15r/0"; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si6676388edr.271.2021.01.11.01.49.03; Mon, 11 Jan 2021 01:49:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=Zmxb92b3; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b="ARB15r/0"; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728636AbhAKJq4 (ORCPT + 99 others); Mon, 11 Jan 2021 04:46:56 -0500 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:19060 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728256AbhAKJqz (ORCPT ); Mon, 11 Jan 2021 04:46:55 -0500 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10B9VIxQ013271; Mon, 11 Jan 2021 01:46:04 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0220; bh=S5ndZupT+KIcVf8SQc8RbC7gz8STwgbX1ub7fDtkNOk=; b=Zmxb92b3VtkBwUqFH1GBKZDEiwI/BQjwj7APBdaJ+4prs9nw+x9npHz/vSZvnnv+roSj IQ7bWG+eirxFDb6rSZngVUM3Sxylw6nBJ35DQ+YnA3WwBhYpGpA6g3yupowNji8WFvhz tVvYdZwWHsGAkQ79j9Zg8+T6U5NsyxZSy5UuiryR8UgJfHfoD2g+1GYbGij3D4lkp2c1 h/91LcR3O/yFdVWzZ9/Ih4fdl4FANmNXk2jVU8Fwv2Zg/TRv6EVU63ooDMSKUmUcUBI2 795YM5TrPeGESfmNPzWGZs9tqkuKap1muerDJ28OioNIXrkmbIjB9ScBYYOEajYZ/tE5 /w== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 35ycvpkgx9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 11 Jan 2021 01:46:03 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 11 Jan 2021 01:46:01 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.170) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 11 Jan 2021 01:46:01 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JkyXBOdcZU/0LFjeIjRi695sgrf/D5n5X6ThFVgTD4KDm8EbVkKsegdEW+s0B5ZN1WuqtX+In9WRb6bBq6VIFkVeqTNnezehAMutncx/7ImO2liZ6bkBYF3bkhWlD7ydkAYMkYc0mpLFLYrYsHFLzFJ6jjeoZJrTAwicSP1DB0JnjvAIAtw3sa3d1BYfxSjYVefRDsYc9Dai125dOm7QOAbv9/WuVswsOQwJKsJpHRfjvAYYzXkkxmcMczJe77MG2ocB4TIlwLIK0gFHEMYaUPvtWsFJsDCZGz8auR8JQ0pTuxtI/2PMeU4/h8mc7Lx9atAB5uYybj7fDo+QEiIdUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S5ndZupT+KIcVf8SQc8RbC7gz8STwgbX1ub7fDtkNOk=; b=iiZyyi58l2XwkL3lIybaL14nSJGVeGUKuwIGBCeSXdrvQF6kFcrtxAGqQGbK6/7VOLWJfUuWGsW6we1zcDZHiFSxebpi3E6nhZMERwwNzMjVRY0CkltVXXKCt37Jqw/lfdBDYnAv0NHT6TLGdxyrcrRJqmBxGAkrir66xJdh5qZqYmYisa6uij1v2fwK2qVY+D0sIQNrow+Im24xc6Sz8k11aEHXJkaa3Hq3TKxdNdmv3KT5SP8thrdG63sKs1pU8MP0JYQFp/Y02ZHne4AIti7e1/thtvbKjvNXRzQvMOyJT+AMRA06PsZOxJIYdWThsjWFAe+HOw/UwhsSQVvHEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S5ndZupT+KIcVf8SQc8RbC7gz8STwgbX1ub7fDtkNOk=; b=ARB15r/0sBEvLBMkUwZuARZa+YNcGJ88qaYHsWeR8JkSpQ9QUI9j7Wr+xRXRAq2dh2HDG6mgADJKT6+CcIsLbzG/iSfvqLI1FXvMXDLmuPO2fQw0aVnNY6+dQvK+qufyCR9Z8y05hckK0BcvAqSDeF/zIQU/FcK+wczyJ+EI9Aw= Received: from DM6PR18MB3034.namprd18.prod.outlook.com (2603:10b6:5:18c::32) by DM5PR18MB2215.namprd18.prod.outlook.com (2603:10b6:4:b7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.8; Mon, 11 Jan 2021 09:46:00 +0000 Received: from DM6PR18MB3034.namprd18.prod.outlook.com ([fe80::201c:2fc9:faf8:16a9]) by DM6PR18MB3034.namprd18.prod.outlook.com ([fe80::201c:2fc9:faf8:16a9%6]) with mapi id 15.20.3742.012; Mon, 11 Jan 2021 09:46:00 +0000 From: Saurav Kashyap To: YANG LI , "jejb@linux.ibm.com" CC: "martin.petersen@oracle.com" , Javed Hasan , GR-QLogic-Storage-Upstream , "linux@armlinux.org.uk" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" Subject: RE: [EXT] [PATCH] scsi: qedf: style: Simplify bool comparison Thread-Topic: [EXT] [PATCH] scsi: qedf: style: Simplify bool comparison Thread-Index: AQHW5/xPMjaiGOa6EkWsr0V3Ozfr1aoiLLig Date: Mon, 11 Jan 2021 09:46:00 +0000 Message-ID: References: <1610357368-62866-1-git-send-email-abaci-bugfix@linux.alibaba.com> In-Reply-To: <1610357368-62866-1-git-send-email-abaci-bugfix@linux.alibaba.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linux.alibaba.com; dkim=none (message not signed) header.d=none;linux.alibaba.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [103.103.215.17] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d26ddcbe-0a78-4286-7a59-08d8b615b43e x-ms-traffictypediagnostic: DM5PR18MB2215: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Y3YrV7fcMXMYFTeahJUX7LWNkgOEsi8NQ3vH7OR0WM4D1JnqCzcenmKOInPXzTq0Qr7Q00crLd8n9uHcx02NZAETnc/obrV0EIVzoCHg5upGhUMmAdq/O524glqelKSPBGDYCUuh6vocYVcoIZ8pjnda1Zlt3cOD8KhaKhuFvMIU0mhb4TWqlRE+EyMp8SsClWKNO5gPL1DNhPyQH9/4DwIZChHr1YjzjRWxkTWM2CuUis7HwILqs1T0+x6NwH0SmcASkGexLbShtz0Qyi3Htc9lC07qrLeJTdsUPSJz+ClEUh/H5r1lv3I65toD1Keo7Fh7UEX6tqe81EJ5ZfHmaqM3tXNN6Br3DJSuZER81dwYUpuEtUN/hyilJmdyfLR5Z08lBvjuzOEJ5B+32aVDzA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR18MB3034.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(396003)(346002)(39860400002)(136003)(376002)(55016002)(8936002)(83380400001)(54906003)(8676002)(86362001)(478600001)(186003)(26005)(9686003)(71200400001)(6506007)(53546011)(4326008)(2906002)(66446008)(52536014)(66556008)(5660300002)(76116006)(7696005)(66946007)(64756008)(110136005)(33656002)(316002)(66476007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?jVt9wVrUKifzMFNIQzlslkduH92hivSX0q6x+u4mfbD5PBLUJS4Xp5geyvQo?= =?us-ascii?Q?2u3DaKBniiG11ascz2a4pa3ufDUJWbF+T5KVmL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?WOPoZqbckfomVN9sYeXKlaXg1yrut1uRVx8hKQ4H0K4=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR18MB3034.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d26ddcbe-0a78-4286-7a59-08d8b615b43e X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jan 2021 09:46:00.6257 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fpRNXHJBLUANQl2tBsy6Q0nNj6g72xpDaFDmOPYdLl/OzWkpTdJi4jaN34rtWcJEnQbGE/DfrahkpJmeGp1/JA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR18MB2215 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2021-01-09_13:2021-01-07,2021-01-09 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thanks for a patch. > -----Original Message----- > From: YANG LI > Sent: Monday, January 11, 2021 2:59 PM > To: jejb@linux.ibm.com > Cc: martin.petersen@oracle.com; Saurav Kashyap ; > Javed Hasan ; GR-QLogic-Storage-Upstream QLogic-Storage-Upstream@marvell.com>; linux@armlinux.org.uk; linux- > scsi@vger.kernel.org; linux-kernel@vger.kernel.org; netdev@vger.kernel.or= g; > YANG LI > Subject: [EXT] [PATCH] scsi: qedf: style: Simplify bool comparison >=20 > External Email >=20 > ---------------------------------------------------------------------- > Fix the following coccicheck warning: > ./drivers/scsi/qedf/qedf_main.c:3716:5-31: WARNING: Comparison to bool >=20 > Signed-off-by: YANG LI > Reported-by: Abaci Robot > --- > drivers/scsi/qedf/qedf_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.= c > index 46d185c..cec27f2 100644 > --- a/drivers/scsi/qedf/qedf_main.c > +++ b/drivers/scsi/qedf/qedf_main.c > @@ -3713,7 +3713,7 @@ static void __qedf_remove(struct pci_dev *pdev, int > mode) > else > fc_fabric_logoff(qedf->lport); >=20 > - if (qedf_wait_for_upload(qedf) =3D=3D false) > + if (!qedf_wait_for_upload(qedf)) > QEDF_ERR(&qedf->dbg_ctx, "Could not upload all sessions.\n"); >=20 > #ifdef CONFIG_DEBUG_FS > -- > 1.8.3.1 Acked-by: Saurav Kashyap