Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp206242pxb; Wed, 20 Oct 2021 20:12:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOAKICs+h7vahAUT5JYiAqa4lHByrF4UxxqwelSGbPxBKKpgCiKNzicyJrLP17HhAyEfOw X-Received: by 2002:a17:906:bceb:: with SMTP id op11mr4031932ejb.449.1634785955570; Wed, 20 Oct 2021 20:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634785955; cv=none; d=google.com; s=arc-20160816; b=rbpLjFTbOl/eLKll3fSrfBaAKmgllM0RqK9tlKXSazTgyQxiHKsyou2BLrx9xt2JmL 6b85F1EARuHex7wFOLgLEoMLbYFk+4RhmPXA8aVl5s6d2asSIthhjoP3o/60YKbN4fMG hYiOu/TEPYrvfsn8sBfmEs59o97NmErDdGMuGVCAIZyXOvrhRR6j5+bRrZAd6lq2Mei2 4BN08tzcZxfYLDSnv1gbHGVmSmJWJmI7pbRn8quDnDoRKcyVDnsmiOFqQ4002TKqHGMP LtRCWTIl1Jik4CyCjuBO/tp8Vy6578Da0k8Z4+WNCZGGL+HDHfgR3CAHWrOiDBvd5DXw Sgtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=BbXcESw4Ts1wZyLs8RYSFjAgRoqadSp3aZb4zAEtSfU=; b=EpEF2ObE8Gc9oe4TbGPf3+t/eSiL8aiwS9c1sSjoj93Z/OKYoupnmiKw3PDyFQsx/A xwKAWexwyu//Nl+qzuhdRd1fWl1cTwUye0NrbLh8yQATtHFMYuMWpYiAFgTW9d6b3/JL 4SyysFAaT4NMg8KW9j8T4zRJDWfVQmUtzZFRDXE+oJs7NxHZV+rZKPXW5ERsA/5AUaEw iwwolP4oSxEDg15kGXiqnd4feYlwXT8efI3jzUNX1BVUAwOZIgi6oPFuhxT1nY9xHrmu Lr3SDSPoV9KNpen0V6sz9pumGHIHOmIHO5UDC1JOE9fd4py29Objby3nobGq08W9UmCr YlxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si4993931edx.561.2021.10.20.20.12.04; Wed, 20 Oct 2021 20:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230363AbhJUDMC (ORCPT + 99 others); Wed, 20 Oct 2021 23:12:02 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:3728 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230272AbhJUDL5 (ORCPT ); Wed, 20 Oct 2021 23:11:57 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.9]) by rmmx-syy-dmz-app11-12011 (RichMail) with SMTP id 2eeb6170d9e724c-10784; Thu, 21 Oct 2021 11:09:27 +0800 (CST) X-RM-TRANSID: 2eeb6170d9e724c-10784 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.112.105.130]) by rmsmtp-syy-appsvr05-12005 (RichMail) with SMTP id 2ee56170d9e370f-44539; Thu, 21 Oct 2021 11:09:27 +0800 (CST) X-RM-TRANSID: 2ee56170d9e370f-44539 From: Tang Bin To: kieran.bingham+renesas@ideasonboard.com, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Tang Bin Subject: [PATCH] media: rcar_fdp1: Fix the correct variable assignments Date: Thu, 21 Oct 2021 11:09:38 +0800 Message-Id: <20211021030938.51884-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the function fdp1_probe(), when get irq failed, the function platform_get_irq() log an error message, so remove redundant message here. And the variable type of "ret" is int, the "fdp1->irq" is unsigned int, when irq failed, this place maybe wrong, thus fix it. Signed-off-by: Tang Bin --- drivers/media/platform/rcar_fdp1.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/rcar_fdp1.c b/drivers/media/platform/rcar_fdp1.c index 89aac6006..d79bf1461 100644 --- a/drivers/media/platform/rcar_fdp1.c +++ b/drivers/media/platform/rcar_fdp1.c @@ -2289,11 +2289,10 @@ static int fdp1_probe(struct platform_device *pdev) return PTR_ERR(fdp1->regs); /* Interrupt service routine registration */ - fdp1->irq = ret = platform_get_irq(pdev, 0); - if (ret < 0) { - dev_err(&pdev->dev, "cannot find IRQ\n"); + ret = platform_get_irq(pdev, 0); + if (ret < 0) return ret; - } + fdp1->irq = ret; ret = devm_request_irq(&pdev->dev, fdp1->irq, fdp1_irq_handler, 0, dev_name(&pdev->dev), fdp1); -- 2.20.1.windows.1