Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1789563ybn; Thu, 26 Sep 2019 02:11:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOodHERAj5lPTbfVpRiN1S+jPdG//KCCqe83lGewAUwgB9B258ixTdWCMqHxVVr//QXYFZ X-Received: by 2002:a17:906:b6d5:: with SMTP id ec21mr2018495ejb.33.1569489096463; Thu, 26 Sep 2019 02:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569489096; cv=none; d=google.com; s=arc-20160816; b=n2l/GMafwo+N+CcAzKk5Qc7yYl4H36BSJ/9L31h/86i22FQ37nRfYXsiLveQe/Mjh8 U3fA4knvF4O3W2nO9tI3BsnWhCRSGlI+0YOu3W0lYqD8706rH3smHrN3+GJhHqMPScPq rKrZh6i3FL+tYpqTjOVH5Wr5GFhhkmqfR7am/eAhtwr5jNM34DOOg7hm13cxL1YuR3rB 6+m/w1wwT894v4hBu+YWaGxJTUg6ARO3WbdBkvjN4mLBd/ai9VhrGcQgl/8lV03IcWfS 4RWXwQZPfGXk3I2c+bWIrQ+f97yHK/09+rt28UDegfkaFN3rdfi1Jlgio5O1f09429UX S8+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=UtH7DgO4iszXGiHbZxZHVmhlVHnfmagKFbyH2fDVeC0=; b=Kis3V6ih9wUM1fOY09+HkqVVYLQVhaJvT6R3Kg00i+7FVbL6HVLsoTp0/PswH/FoRu Ig26iKMzpsJ3R8d6vYho9gWt53HngrC5VF3sYQ6zsRhZf2S3FIUO38bvRaNWxDLdO9BA DkNQEoNhlbZmJaL+/ORfB5Q+zc6B2BgrTz/6VJF3dkKOwHfeyaon/mQ13Fg4r0Ebu59T YsiNY9R0LTxD5NmGLY+9ZiJEJ2hks0UZd5Cm0PUpZPMvX2ZSKBrfaV/0Cg70y6ZL4L2D P3/+k2Z1hLU9Q7Mr4tIZuqJPitbsGIXGe24Q0KTcgr1t2PxI4q2hBQEFIG6Q7BTAezOF zg9w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e50si993903edb.177.2019.09.26.02.11.12; Thu, 26 Sep 2019 02:11:36 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633813AbfIYDta (ORCPT + 99 others); Tue, 24 Sep 2019 23:49:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49084 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2633617AbfIYDt3 (ORCPT ); Tue, 24 Sep 2019 23:49:29 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9C3E718C891A; Wed, 25 Sep 2019 03:49:25 +0000 (UTC) Received: from [10.72.12.148] (ovpn-12-148.pek2.redhat.com [10.72.12.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id 559C2600C8; Wed, 25 Sep 2019 03:49:19 +0000 (UTC) Subject: Re: [PATCH] virtio_mmio: remove redundant dev_err message To: Ding Xiang , mst@redhat.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <1569309666-1437-1-git-send-email-dingxiang@cmss.chinamobile.com> From: Jason Wang Message-ID: Date: Wed, 25 Sep 2019 11:49:17 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1569309666-1437-1-git-send-email-dingxiang@cmss.chinamobile.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.70]); Wed, 25 Sep 2019 03:49:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/24 下午3:21, Ding Xiang wrote: > platform_get_irq already contains error message, Is this message contained in all possible error path? If not, it's probably better to keep it as is. Thanks > so remove > the redundant dev_err message > > Signed-off-by: Ding Xiang > --- > drivers/virtio/virtio_mmio.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c > index e09edb5..c4b9f25 100644 > --- a/drivers/virtio/virtio_mmio.c > +++ b/drivers/virtio/virtio_mmio.c > @@ -466,10 +466,8 @@ static int vm_find_vqs(struct virtio_device *vdev, unsigned nvqs, > int irq = platform_get_irq(vm_dev->pdev, 0); > int i, err, queue_idx = 0; > > - if (irq < 0) { > - dev_err(&vdev->dev, "Cannot get IRQ resource\n"); > + if (irq < 0) > return irq; > - } > > err = request_irq(irq, vm_interrupt, IRQF_SHARED, > dev_name(&vdev->dev), vm_dev);