Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2231485ybi; Mon, 17 Jun 2019 00:55:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEFWqITPFaOMEhGwYFBKAg8mrXxfdQRUx8xZa7IZbaKqAVlVL935YdGnk6zK5KxcI5NMVt X-Received: by 2002:a17:902:8609:: with SMTP id f9mr99024942plo.252.1560758111245; Mon, 17 Jun 2019 00:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560758111; cv=none; d=google.com; s=arc-20160816; b=aeyqwv7SmtfnH+NeGWZbrdQfQWFNii2DPOUePhjvC18VBu6iOUWY0BVrpOGC99QYab 6GiqmpMBQ/+LRgJMFE02DqAG5GAFetYHnMiGRLd+k0wprJXyhtfI79kvO/nWWsTRX+1m xuIml1JBQk6GbcIY87gVptyplTOnfALHY+UOQJ8B3DyZ8NeR5ZeTNONmUfNY7s479KzC waT9/YZW3k8odRbjwf+2mhP1n/UDqGY7tAOIliuDRAWjbMMwf7xx5uxRU87MGvNBynGE nzJ+4unDQW+oRGxUk1nfBQA4IMGf8kldgV2lSPt5dNxNFQmymvsY7aFVP2OGUqygYLek GyNw== 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=t1pIXwC6qKMp7Evdyj53O8stjYaD2xF5xcWOfJEKCQM=; b=nNQ6VK54HCoQn4xv9ag4pJ9brzRr9XxeuqtxYaGswCV604ocTjRkd7EYNaZJKEJXAE D0v+vKtQ70muTqPcE9sqg+TfOGLBTzGSPyW6/gSDvvA/QFcIjEXtBM9ZaWNlEElbYiGr zIqO9oxmczsi85Fyl1ABEMMhunlzrRjcwywr6xaCbeCh4oz+t2dz+by/Aw4mlRk47uSM k/Me8D+/nSSKOTsbK+4zoiflJ87fKPKlhvEpHxL3KsR19ohjq8tFaSaZfZHKFR+hJizK Cd4iXqxsZp25uUH+FSFQeiaa1/xvu2K7mnIKhjZLKQtXCi1GO8khRmdakKr7l4r75bp3 v/5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=1BUzi8rY; 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 64si9659135ply.399.2019.06.17.00.54.55; Mon, 17 Jun 2019 00:55:11 -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=@st.com header.s=STMicroelectronics header.b=1BUzi8rY; 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 S1726362AbfFQHyp (ORCPT + 99 others); Mon, 17 Jun 2019 03:54:45 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:22984 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725862AbfFQHyp (ORCPT ); Mon, 17 Jun 2019 03:54:45 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5H7rvFm026612; Mon, 17 Jun 2019 09:54:33 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=t1pIXwC6qKMp7Evdyj53O8stjYaD2xF5xcWOfJEKCQM=; b=1BUzi8rYjfd3WsBgAkJxfn5BE6hVwyPAZLfVhsAK98Q1s+kQeiwYRwQWznB/j/mprjDM pAD0yIVXV8rz9gw17zwLiqv/+7KNwOG6Fi50uAWk0N+2wgD5IimxLb3GsdpIVM3gaN9I T1/m146BnSTl0/4E42WwI9qRJti4n8VL3WtrWtx1zbySpH0FapzYbUnj7Vg3VRNaazFQ klmbJZ2a+lh2hEqLZFd27GljA2dsmsntpUU0IKIKgWaM2f25bVGTFNluB4BAp362E2/H Ra6KIPoZ+OIfUg3/e7fCV9Hb4mxeIUQN31seC9Y4hvwr+P6TwqnBh8RTcYEZb04oI3NY PA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2t4nt81hc3-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 17 Jun 2019 09:54:33 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 51CF031; Mon, 17 Jun 2019 07:54:33 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CDCD9166A; Mon, 17 Jun 2019 07:54:32 +0000 (GMT) Received: from [10.48.0.167] (10.75.127.50) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 17 Jun 2019 09:54:32 +0200 Subject: Re: [PATCH v2] i2c: i2c-stm32f7: fix the get_irq error cases To: Wolfram Sang CC: , , , , , , , , References: <1558020594-1498-1-git-send-email-fabrice.gasnier@st.com> <20190614205322.GA17899@ninjato> From: Fabrice Gasnier Message-ID: Date: Mon, 17 Jun 2019 09:54:31 +0200 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: <20190614205322.GA17899@ninjato> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG8NODE3.st.com (10.75.127.24) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-17_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/14/19 10:53 PM, Wolfram Sang wrote: > 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. Hi Wolfram, Thanks for reviewing, I've sent a v3 with your suggestions. Regards, Fabrice > > Regards, > > Wolfram >