Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3565641ybd; Tue, 25 Jun 2019 04:57:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZGTgFjcTiyFd+DBxH8xK2kHdIXR/eyTUuwSRyvwoyUTpwCgWPtdLayxbz0Azmz7UyeCRN X-Received: by 2002:a17:90a:cf0d:: with SMTP id h13mr31380001pju.63.1561463832055; Tue, 25 Jun 2019 04:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561463832; cv=none; d=google.com; s=arc-20160816; b=wCXNZbMh3RlgUJOf0vYfUehbrkwHwb2RkdRIqkZGJK69hMjMiLFkWOsOK6FsByPtYX hhmhN6RdCApfZtzdMfddNorooyLEivhKKRtpbZ2h4txB1Udmi7Buq3WYi2OeCCjxAoR0 ehGglCMiLo1XLK0jkKs7V130qzP5zRKFdbD+ZwCKnMf0AHvWvjTyh9GqYYxb7it293x4 G1HX+Vsj9T2U2w3TXASVeZoJmLytdOnKZEkU3RekQ9JybvzP24GJJFgQYhbCKvXfgdSN WKPMqhWL5iZXEcEhP8t4KgD2Eg58sYgNOttwaZg/wL/LxG1+rr8m6MlYkqAKR3fEeDZz 9Ydw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=zWtyiVKQv1Kc53PEsd84A1unG9JyF64ZEbVFqS74fng=; b=UUGo4R6gsryTuZMx/ZVD4ucBxpnCQjZL2htu/v4Obs0p5cXUrGmWnv8zGNVvEdfs7B 81CwLF5K9bCas4Zaq8DIHp0uNQU2LRPguZj99W8lMceGKP837eQrcmaXdLaO6eFY9tYt d/Fky63COOrhtwP8VQ6fLmmim//AgeDzsAmOANqgxVam36kuOydS5i/mKC8059ktPQiZ GanRmnyyWGxjncQzl7ALtVOL3rC6TZfoFBYgeBSgAMYcBMeYBerKzG1g6M6ssylTEMQw TqE0Gz6BHz8oBYuKs2uTSgqANexGCXg+zGnwBskJHJwBTzPp/5f/PIOuQfljJ7xG+OaA Y6Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="MMkigt+/"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24si2556158pjt.88.2019.06.25.04.56.56; Tue, 25 Jun 2019 04:57:12 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="MMkigt+/"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731424AbfFYJYq (ORCPT + 99 others); Tue, 25 Jun 2019 05:24:46 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:51150 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbfFYJYq (ORCPT ); Tue, 25 Jun 2019 05:24:46 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x5P9OapP052130; Tue, 25 Jun 2019 04:24:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1561454676; bh=zWtyiVKQv1Kc53PEsd84A1unG9JyF64ZEbVFqS74fng=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=MMkigt+/CEtb/tjDDXjXVlw2SX9tr76dvNIhpUdesdUlpHWP0EyaEUCEjDReqVIOp 03Ym5I3EMwr/B84aJ2ODm6Wc7YMxr81o0jxYg5tbEK7uEuxtURfBv5aR1lA4Olptqn rYvHAWV6v8kD7ehtFL15olNgEKQc9jXGzmLKqfXI= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x5P9OaHW121033 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jun 2019 04:24:36 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 25 Jun 2019 04:24:36 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 25 Jun 2019 04:24:36 -0500 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x5P9OXMs086333; Tue, 25 Jun 2019 04:24:34 -0500 Subject: Re: [PATCH v12 5/5] can: m_can: Fix checkpatch issues on existing code To: Dan Murphy , , , CC: , , References: <20190509161109.10499-1-dmurphy@ti.com> <20190509161109.10499-5-dmurphy@ti.com> From: Faiz Abbas Message-ID: Date: Tue, 25 Jun 2019 14:54:53 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190509161109.10499-5-dmurphy@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 09/05/19 9:41 PM, Dan Murphy wrote: > Fix checkpatch issues found during the m_can framework creation. > The code the issues were in, was in untouched code and these > changes should be done separately as to not be confused with the > framework changes. > > Fix these 3 check issues: > CHECK: Unnecessary parentheses around 'cdev->can.state != CAN_STATE_ERROR_WARNING' > if (psr & PSR_EW && > (cdev->can.state != CAN_STATE_ERROR_WARNING)) { > > CHECK: Unnecessary parentheses around 'cdev->can.state != CAN_STATE_ERROR_PASSIVE' > if ((psr & PSR_EP) && > (cdev->can.state != CAN_STATE_ERROR_PASSIVE)) { > > CHECK: Unnecessary parentheses around 'cdev->can.state != CAN_STATE_BUS_OFF' > if ((psr & PSR_BO) && > (cdev->can.state != CAN_STATE_BUS_OFF)) { > > Signed-off-by: Dan Murphy Acked-by: Faiz Abbas Thanks, Faiz