Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp379406pxb; Thu, 21 Oct 2021 01:05:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0qZLVMcGFpnix6XeKSEcet6WBY0MSGTsoX63f0vuhz/R9h4f6CzlQ4BFbLT/S+jB+kTQK X-Received: by 2002:a05:6402:2748:: with SMTP id z8mr5834968edd.25.1634803548636; Thu, 21 Oct 2021 01:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634803548; cv=none; d=google.com; s=arc-20160816; b=fAmkCsaw8cMQ1RnZUzU0Ng1Zq6w2sxqgzUKtNB2nfKYaRPKjcVwfW7hfwAZm2LMWLC XK2Pm95XO8dR/WwcVJU6KwZhjVS5BTejapQ+56WBp10q9CByfrOhHU5lfBhWfrGvsRMM xZvOpiUproCfgTZ7Uf9OQeq0WH41lyoRMpdY2xAQ9WT2vsF/YeoZaBTaejoS4FbHMsOy jkEFGJNJt+GrBVJBXQGyDXW/8ZZtl6m1ISMPTIhvZNHlpsoHN8v2ak53PQMZGbdJC6Ey moPBZXLuq8kMyEkjDj57eJ9LYk1INecfyRVGc/6BKyLZkSNN1dZ1LHgqR5TjNLoe0/uj kCsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=JqD7D3pbeGKTvxzUJ9i8K7JJYOkSeWMS6MSFRPQ+gGI=; b=vgYsfnIXghTDvH+6MtQCICASJGCDQC9fhSMSi+s/7wX7DpiyTK3YGq+sX+zTt3vBLn cUzfllNeA5G/vI8xtoO0KoYHgQ3tLNh0Xy8cYlTgRE4gV+UwJJiUMrzjcCeLEFPTLgp9 kSj7EadaVUDMi2vsytISlQChU4F6emM4gRR6Y0Ff1RVjCeDuLwrxClLX3uB95g63JX3U 6uRMjmfwZgFPiWwtu/Q6fJg1xrULNQgQRAst4vtycNq0Z6ljf8z6vjPU39QakBGYfrmW NNUKvSUdX0mMUPM+2/NdCn549WvL24cVPEZvspNZrEc1bAWfTZJFT9PlxK7fsyVwknL2 yEiQ== 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 5si6706254ejq.398.2021.10.21.01.05.25; Thu, 21 Oct 2021 01:05:48 -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 S231287AbhJUIBr (ORCPT + 99 others); Thu, 21 Oct 2021 04:01:47 -0400 Received: from mail-ua1-f41.google.com ([209.85.222.41]:38884 "EHLO mail-ua1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231133AbhJUIBq (ORCPT ); Thu, 21 Oct 2021 04:01:46 -0400 Received: by mail-ua1-f41.google.com with SMTP id h19so11563580uax.5; Thu, 21 Oct 2021 00:59:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JqD7D3pbeGKTvxzUJ9i8K7JJYOkSeWMS6MSFRPQ+gGI=; b=tW9lLHgCHZ8rZuhtVnntIFE6GyW27SRrNvXKWErYz+KB+BhYykLvxgk2S3NDwHhJ1J 0scKg2Ecdge4BrIetLbhqzMvt5Tc5ZQlc4cX8IyJRph5qnPKCVm6gbb9TrRrD0udNe/L VlCDotj+cStUPcmD1NFhWTQ259ZXjO5xEoB9thkqdkL2Q6pzHnFPrLnQE5OW0GbZYy3H b7lBPTIpmvoorag6lH7WrkLtYFoVQ5U7t6J8zoufOoJXJu757jSQz9YMtNw1MhuqVRsg j2UlYRNTtQKz4XiiGbqLkh/CnWMowdAGg4Yr1QYHEfzzxuyAEVNmSmQKyJ7M4BC0+X5W 7L3A== X-Gm-Message-State: AOAM533Usr2vnZ6nJQE+xWgVaJNu+1Pqwagx/pi8HJ8i5HkGjZVwP9yq 6KKjP1iLKWBOU3JLFAJInnMJ/4zObZ1Q8w== X-Received: by 2002:a67:e15b:: with SMTP id o27mr4329457vsl.22.1634803170400; Thu, 21 Oct 2021 00:59:30 -0700 (PDT) Received: from mail-ua1-f50.google.com (mail-ua1-f50.google.com. [209.85.222.50]) by smtp.gmail.com with ESMTPSA id u13sm2646960vsl.11.2021.10.21.00.59.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Oct 2021 00:59:30 -0700 (PDT) Received: by mail-ua1-f50.google.com with SMTP id h4so11622088uaw.1; Thu, 21 Oct 2021 00:59:29 -0700 (PDT) X-Received: by 2002:ab0:3154:: with SMTP id e20mr4686380uam.14.1634803169371; Thu, 21 Oct 2021 00:59:29 -0700 (PDT) MIME-Version: 1.0 References: <20211021030938.51884-1-tangbin@cmss.chinamobile.com> In-Reply-To: <20211021030938.51884-1-tangbin@cmss.chinamobile.com> From: Geert Uytterhoeven Date: Thu, 21 Oct 2021 09:59:18 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] media: rcar_fdp1: Fix the correct variable assignments To: Tang Bin Cc: Kieran Bingham , Mauro Carvalho Chehab , Linux Media Mailing List , Linux-Renesas , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tang, Thanks for your patch! On Thu, Oct 21, 2021 at 5:10 AM Tang Bin wrote: > 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. The second issue is not actually present, as the error check operates on ret, not fdp1->irq? > Signed-off-by: Tang Bin > --- 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); Anyway, the code is correct, so: Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds