From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Auger Subject: Re: [PATCH v2 3/7] KVM: irqchip: convey devid to kvm_set_msi Date: Sat, 18 Jul 2015 20:39:25 +0200 Message-ID: <55AA9D5D.7010607@linaro.org> References: <1436430137-24205-1-git-send-email-eric.auger@linaro.org> <1436430137-24205-4-git-send-email-eric.auger@linaro.org> <01d401d0c062$086c2ee0$19448ca0$@samsung.com> <55A8D44A.3030105@redhat.com> <029401d0c07a$55a3ddd0$00eb9970$@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 282F858E2D for ; Sat, 18 Jul 2015 14:27:59 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lwux+CJPkH-4 for ; Sat, 18 Jul 2015 14:27:58 -0400 (EDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 5C9BF58E2C for ; Sat, 18 Jul 2015 14:27:58 -0400 (EDT) Received: by wicmv11 with SMTP id mv11so65792373wic.1 for ; Sat, 18 Jul 2015 11:39:57 -0700 (PDT) In-Reply-To: <029401d0c07a$55a3ddd0$00eb9970$@samsung.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Pavel Fedin , 'Paolo Bonzini' , eric.auger@st.com, linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, christoffer.dall@linaro.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: andre.przywara@arm.com, patches@linaro.org List-Id: kvmarm@lists.cs.columbia.edu On 07/17/2015 12:21 PM, Pavel Fedin wrote: > Hello! > >>>>> + } else if (!msi->flags) >>>>> + return -EINVAL; >>> Did you mean "if (msg->flags)" here (inverted condition)? Yes thanks for spotting this. Thanks Eric >> >> Indeed, and also you need { } around the return for the QEMU coding >> standard. > > It's kernel and not qemu :) > > Kind regards, > Pavel Fedin > Expert Engineer > Samsung Electronics Research center Russia > From mboxrd@z Thu Jan 1 00:00:00 1970 From: eric.auger@linaro.org (Eric Auger) Date: Sat, 18 Jul 2015 20:39:25 +0200 Subject: [PATCH v2 3/7] KVM: irqchip: convey devid to kvm_set_msi In-Reply-To: <029401d0c07a$55a3ddd0$00eb9970$@samsung.com> References: <1436430137-24205-1-git-send-email-eric.auger@linaro.org> <1436430137-24205-4-git-send-email-eric.auger@linaro.org> <01d401d0c062$086c2ee0$19448ca0$@samsung.com> <55A8D44A.3030105@redhat.com> <029401d0c07a$55a3ddd0$00eb9970$@samsung.com> Message-ID: <55AA9D5D.7010607@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 07/17/2015 12:21 PM, Pavel Fedin wrote: > Hello! > >>>>> + } else if (!msi->flags) >>>>> + return -EINVAL; >>> Did you mean "if (msg->flags)" here (inverted condition)? Yes thanks for spotting this. Thanks Eric >> >> Indeed, and also you need { } around the return for the QEMU coding >> standard. > > It's kernel and not qemu :) > > Kind regards, > Pavel Fedin > Expert Engineer > Samsung Electronics Research center Russia >