Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6208726ybi; Wed, 31 Jul 2019 10:08:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt4ig+NwxSA/5j7gBamsfyZBmkpxGVAevAdhwnox3PptqaGqdqjOSBWbElXlugRzHUqQGP X-Received: by 2002:a17:90a:26a1:: with SMTP id m30mr4063034pje.59.1564592899162; Wed, 31 Jul 2019 10:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564592899; cv=none; d=google.com; s=arc-20160816; b=Jjdc4hwOINxugsbg9ph4Y5comaQNB9JKitcq8uCbcNBbB3P8cR2U48KOtmNY1qeCra 9z5niZmhiGSteXYs22X5dUqmxl2sakVW2vUn/NToZs2od3+Cczksm1HzDvtNh6gLROqq 2zk7PU6KLqAUTRCfCvyzEDCzt1UjsF7qqm8v2Zz40Fw6I+MfIbCvJ1rBnA09MYgfe3gI UV8nsjauMCoNuUfZLEd0CzAtBZcWhSmtMERc3kaUnL5LcKsYRp+exiBSCTJBwJd1s/0P INyIopwuwyB/iSqShtc9WJfv6Xs9nGr6LRX2Xr60x0RvpEDDY7Ez8WA+OqO4v55rCRj1 60WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:to:from:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=mXrN86Eu2CP26yhQ/6WETjSqBeLcHl2RwLyOJM6x5jk=; b=su23pcZRjPoNnSEHFTLeqVycgeWzlHAlByc9XvsZeo9yYvpGm/NoNGCBWsruJqmmWl w5GmsKk1SlbCcI44JEAgftE93zxPOgzK3QEdoe4FkDmMjd2fVdpo45WoQmmyzKz+wcD0 HVkjbN6ODHQmvEbbf8jNPhdxhpwv+10n0QaqF6yKbdFkgqKuB0NygF99UILKsAKfKYKS aGAmggW8fCP5bWG9WohTu0pWO2n8yHJ4ufnxFLEcuBBJtkkfvassAbk7rw62k1OnPS0T CFCj4x7dOouSUdLW34B3r6dIydqA95hn/dOtETWKia0R1hf0kXImzSxngD09BPER3VWb VOkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XZ9J92fI; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si34579461pgk.456.2019.07.31.10.08.04; Wed, 31 Jul 2019 10:08:19 -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=@chromium.org header.s=google header.b=XZ9J92fI; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387711AbfGaOqu (ORCPT + 99 others); Wed, 31 Jul 2019 10:46:50 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43274 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387639AbfGaOqt (ORCPT ); Wed, 31 Jul 2019 10:46:49 -0400 Received: by mail-pf1-f196.google.com with SMTP id i189so32003441pfg.10 for ; Wed, 31 Jul 2019 07:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:cc:from:to:subject:user-agent:date; bh=mXrN86Eu2CP26yhQ/6WETjSqBeLcHl2RwLyOJM6x5jk=; b=XZ9J92fIR4AGZPgrNeCSx5yVQFFaePHjv0dcyX2Ie8QcuIk1im6khj9UekqtERbXN1 dBbp18fAdYOLxKGPTfpHPyokbm/Kt8onB6Lx1dUoRelGoSGEfEoUAFmUkMSW3+K2/HiK uB9EkuH8EWXiixZrhDn9eCkR1Zp4RlUfZH4CQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:cc:from:to:subject :user-agent:date; bh=mXrN86Eu2CP26yhQ/6WETjSqBeLcHl2RwLyOJM6x5jk=; b=GeUNgS+pV6lSwx+CmeK/E8LVBrcs1F2+etoWfZ4VHcH2zXm4DMJuRVHK5A7hf+KgI+ dRpFQqc4x6pRf+DT58XbHRwPKXbp+9B9XXDY/J62PTuSYPCtYPc6B9Pa8e6g+81FmjNW 5jAQWHfdh/b3YM7lvgQ67S5xnTIlMx4JW0GbJZdARrv49Czr54erJf+UJG4KVxgQD0O0 2kf+vVgkUXgb0uFqyO50AeaTvxFFzyvRe0nW/ZNI+bqI8I5lWceEyWrr1B9g5hwme09c rc9iJk5QqHxzyOJHHJQv+/g+GoYADuW1jA+4rwhvf6dBBauQqzuhWQSV6TymAy+pZje2 XGuA== X-Gm-Message-State: APjAAAV3pCy7+l3knKJgt3xbKzvVBPRdcnw0sJxL34eg7kxH3tUceXor CGPbOEFXjS8bbhiT42l2S5WeTQFvjnFI2w== X-Received: by 2002:a17:90a:258b:: with SMTP id k11mr3249368pje.110.1564584409094; Wed, 31 Jul 2019 07:46:49 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id h11sm69817121pfn.120.2019.07.31.07.46.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 07:46:48 -0700 (PDT) Message-ID: <5d41a9d8.1c69fb81.bdbb9.bea3@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190731143011.GB1680@kunai> References: <20190730181557.90391-1-swboyd@chromium.org> <20190730181557.90391-19-swboyd@chromium.org> <20190731143011.GB1680@kunai> Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Greg Kroah-Hartman From: Stephen Boyd To: Wolfram Sang Subject: Re: [PATCH v6 18/57] i2c: Remove dev_err() usage after platform_get_irq() User-Agent: alot/0.8.1 Date: Wed, 31 Jul 2019 07:46:47 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Wolfram Sang (2019-07-31 07:30:11) > > -dev_err(...); >=20 > What about pr_err, ...? Sure. I haven't tried to find these ones or pr_warn(), etc. >=20 > > While we're here, remove braces on if statements that only have one > > statement (manually). >=20 > You can let cocci do this for you, too. From the top of my head: >=20 > if (...) > - { > S > - } >=20 > with S being a statement and this rule depending on the matching rule. >=20 Cool thanks for the tip! I'll have to try it out.