Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1386115ybi; Fri, 14 Jun 2019 13:55:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3sLwwtHLBZZlC3E4CNAm10Sb8ImJMuA848d4GGnLPYeRoQsf+iG+anU4km16qCN8l0mUT X-Received: by 2002:a63:1106:: with SMTP id g6mr35251985pgl.83.1560545707437; Fri, 14 Jun 2019 13:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560545707; cv=none; d=google.com; s=arc-20160816; b=OrCvsSAJWzwnUgICHuMloXZccrA7KFEzCIH89oaIhGYSqvKtkF6TqHJUnvWL2YLoLF llyFMcDgK+Co0M8xrvlabgEvtZ9xVkcJ+ru5W16fspnLS1w+CJLK97mnn4I4WKAJ4lks 8UEf8xGScZ8QBHh0zrpGNJMtG6nDUI/BRh6+I1XQ549cRM8nwkO6s7ee8YYmEybEjP1D D8dbLZXZ2DmPGvoxhjIxHMDCTEanGQHiS0ZnF6vRB+UTdCumBwLlf+4+OffF3/AaYdtA QMaH2L05kjtk7DRc9mDBTTEJerhT9ueQ1CMij9UxaH2hRxqIQaT4dIHsV+GU+B9c1wSv SE6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=N7kw08CuQvPxfiqQm+Nlx+CQ4WnkbA3bbPCPitXE+DI=; b=rIWAPqmqIaDPcNcZoljnW3JrjO0Jc3EyfLlgGyFxCRU57tqv5P9gqcJLI0LiYMChwm Lj4AY2/LC+sdaSckFZWLr8AgPYJgsjS3vTgxXppx4n6Kx1nHr5ZF6Ztkwud1Fcmv0fD+ XGSL/LBmVfFg6bgIskNA5+lzJWsjRaZcP/F6aspJlLi8780o4PFPDDeyEMqmbevKws2R IlV8wvg6+ZRGxwfAn+X1JmbzU71DHtvdPvyDIyhYtA+kXzazaBAlSUveN/Pd7lebyKJ0 NCWsPyx531e/qXOzE5+UExYz2pIhsOIju/ETOafg+d49Slmmrr/Y4zQLVxPkWVVtYH+l muSw== 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 k14si3222341pfa.206.2019.06.14.13.54.51; Fri, 14 Jun 2019 13:55:07 -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 S1726530AbfFNUxY (ORCPT + 99 others); Fri, 14 Jun 2019 16:53:24 -0400 Received: from sauhun.de ([88.99.104.3]:56910 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbfFNUxY (ORCPT ); Fri, 14 Jun 2019 16:53:24 -0400 Received: from localhost (p5486CF81.dip0.t-ipconnect.de [84.134.207.129]) by pokefinder.org (Postfix) with ESMTPSA id D46602CF690; Fri, 14 Jun 2019 22:53:22 +0200 (CEST) Date: Fri, 14 Jun 2019 22:53:22 +0200 From: Wolfram Sang To: Fabrice Gasnier Cc: pierre-yves.mordret@st.com, marc.w.gonzalez@free.fr, fabien.dessenne@st.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-i2c@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] i2c: i2c-stm32f7: fix the get_irq error cases Message-ID: <20190614205322.GA17899@ninjato> References: <1558020594-1498-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <1558020594-1498-1-git-send-email-fabrice.gasnier@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Fabrice, > + return irq_event ? irq_event : -ENODEV; Maybe -ENOENT instead of -ENODEV? I mean you have a dev_err there, so the driver core should probably also complain? You could also shorten the ternary operator to: return irq_event ? : -E; However, both are minor nits. If you prefer to keep the patch as is, fine with me. Regards, Wolfram --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl0ECT4ACgkQFA3kzBSg KbaP8xAAiUUQ1YDf9eeO9qQ5B7FKo7kXJ7iUA/RbGjfpC5zhjsoVgb7DdHvc7npe PSrQ21fAXNJtFz4N1CcQ6A38C2/IYZ+A2NnmwNyzMhqL5W5Ah2gPl6UP7S6USF4J 4NnHw0/0eeH7/i+F13uiVGJudC+MVesWYPZgOBq9GGqgwxp7IztsjSOliBDRkC6c 6RtdlqXD0UfUt60sxIJz/Oy+SYRKc0V78KUeybe7+fT5gisBfF3E1Zs3OZFieupk BIRuhXDNBQUTb7Cy387Zh4Im2uEzUb1qBIqC3azfJhNVyMm9fyiFGgysXNhkgEJ5 1CKiXadTzhYJQJUpxNDmYQcmk8t/cM69R9NKBXou8XCeutIbe4BA6myz0U0hz1Np E7iBJ//LJpXAptZErq3n2VzDFHKKFWn4hyIJKI7LOZIdO2t/I/6wzJPMKxHJSOTv soWDgPcS/D1to1Glq4+CPqwNicEXLm5q1H18UE0SjBskFaGwCwyjNFAvwwjmhJ4f 73uuuJBC3Oq2W/JqnYY+IFcue4GO/VS6ZughqW8iebSmwaoArzN00L844leXDkHN 0dBGj3bT/lcLrR+d7jLsWeHt4t6J0dTJAkIxBivl+dK2nta7NMalnqp6cFp/nHfY R8KQhpWqlKhaoFGQzW1XiLNlKq+ZPC4MGq3h3thFOc9Z4lo96KA= =VE/8 -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--