Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2804047pxb; Sun, 15 Nov 2020 18:55:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZGNu7YbPl4lFQqQzzEcI+BCEscBIV/m+6+Xglm5yg5G48qU1EOyJRaKQtGN8+V0UyvErm X-Received: by 2002:a17:906:2806:: with SMTP id r6mr7081117ejc.130.1605495312525; Sun, 15 Nov 2020 18:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605495312; cv=none; d=google.com; s=arc-20160816; b=YhP5yrwnA/YdG7b12CfntUXZabjPJ8ipQtS+CGUNNhCiHFEYvo3aAE99jbul4q8Iqe VEamezvkHnBRpkm27b2hKnEtUuqawPnZFoAV9Y+27Gjh5iReG0dTgm4EkySX0Ogneklt Lc8DBvYfui49Fps4JoWMcZ9/+C39/50oYNFlk/FlyzbMyakLl0iiuGzh1uqNtlgOQseD srh37F/pFPwZvNbsZaiuR74MTE5T6Aj50Erp//UwlADR26V8jrF/eFuRFzUkLnhykgFd wAKgRjYLvYWF59WkmKFrSGZ3T8DJtrBg7s1fYTLbYmaTTerjF2JqEEXOm6E6leryYJLh CfvA== 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:dkim-signature; bh=4tbtYPRVwe91AzaVofnak3fBr/OUB5Tnq78kbe0HEPE=; b=1HlXiRelsy92jwoZZf/o2vU19QibP9x5Gwe+ijHOSjZ8hgs+JU/flyv2QLkLKlghjR 8YcAYMNdprqTwhPEE7o7ZjjMwTws6lZ2ghFYcpvIYMe+RKoCsyExRCGmbn4p/rfaxe1j kZpn5a90gvJTdiKCtPLlcYokO5sS3qB1jHJMqKWabDz7KK3MIS+r9bQbR0YXQIVo7h+t oOmQ0EvkNLCrfXvo9tTPEMD4vINKz9X2KUj0cWQPP0FiWGHbE/tsLFbd0HLwgJLIjgB0 NMxypw5qLM2U58a0O3VjzYYIpIT+9bnIorYGDc29hLwrQo19OT0sVvMl0YwAkMCGagSQ 34pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oWDXG90b; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id os24si10845656ejb.272.2020.11.15.18.54.50; Sun, 15 Nov 2020 18:55:12 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oWDXG90b; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728171AbgKPAYg (ORCPT + 99 others); Sun, 15 Nov 2020 19:24:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727618AbgKPAYf (ORCPT ); Sun, 15 Nov 2020 19:24:35 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBC87C0613CF for ; Sun, 15 Nov 2020 16:24:33 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id p8so16908918wrx.5 for ; Sun, 15 Nov 2020 16:24:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4tbtYPRVwe91AzaVofnak3fBr/OUB5Tnq78kbe0HEPE=; b=oWDXG90b/E+THuTqnGX5t11UZnv3ESw8yGkloNnBAkooHieEFgcEzcOulq9Nwn7Adj tMd/8Kf2G+iQSx3Jlle4sCtpdQEzpe9un7BSI+Qd4oGUytykNV8GUkHF0kPqxVqdZFg9 lXS4cwNY6sqb/HrAdTm9O4dUD29Krs3tvgJBizvgH0LumHoFMq/muzX6w44sPYtgX/4o g9WUHwmWSSkqEKPR1IWhfF+HQuWa1T/DqDCmrvg4NRtU3PXXMM6pUOsMXeY+t946a6uS Mw/C675Ll+aizQwI2EsSxj3TYxgCPh8gt0su9FQ25SJ3uFrQD1jZjuG9F0DbkNmXF7+K qcXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4tbtYPRVwe91AzaVofnak3fBr/OUB5Tnq78kbe0HEPE=; b=h+By1ZxJDxtB3tRZLJIODLX1GfhH+84KobZ6AjDKbAiT4tuI/C3IPL4d3p+GF0kCLg VQxm9Au/zG43MTMjW2wHJIENyNKX2CoNm89i+JJ3KRcc6i+0fnz7WOYDwD97yne3xqwf 00O5gIqb7+BMjmhDd4VtmEmjSDYVpyScyRT/4LfoKj6trGjyd81grKM+lXsPWNZYtF4u o29FBjqWqFkmyrSwx6bRS+jbjw5zDUvHSPjRwIYqY6adoRfFIJovR7a/lvExBJ5H0IMi WAehVDzL0H4oVP+tcRlZt3KJ41I83euFeVgvl3lIfCAOR9COZkVDsOkxxngIbeAgKRaY SqFw== X-Gm-Message-State: AOAM530YS/l8ySH/Kr8jA9FMOwlQ186LR3bikwhlosaHmQ3UiU7l38ZJ uNvT3kNSF9/ardBDhBH/7hDunLGFGf2ubHjI+uI= X-Received: by 2002:adf:eacb:: with SMTP id o11mr16377652wrn.208.1605486272652; Sun, 15 Nov 2020 16:24:32 -0800 (PST) MIME-Version: 1.0 References: <20200919100850.1639111-1-liushixin2@huawei.com> In-Reply-To: From: Qiang Yu Date: Mon, 16 Nov 2020 08:24:21 +0800 Message-ID: Subject: Re: [PATCH -next] drm/lima: simplify the return expression of lima_devfreq_target To: Liu Shixin Cc: David Airlie , Daniel Vetter , dri-devel , lima@lists.freedesktop.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied to drm-misc-next. On Sat, Sep 19, 2020 at 6:43 PM Qiang Yu wrote: > > Looks good for me, patch is: > Reviewed-by: Qiang Yu > > Regards, > Qiang > > On Sat, Sep 19, 2020 at 5:47 PM Liu Shixin wrote: > > > > Simplify the return expression. > > > > Signed-off-by: Liu Shixin > > --- > > drivers/gpu/drm/lima/lima_devfreq.c | 7 +------ > > 1 file changed, 1 insertion(+), 6 deletions(-) > > > > diff --git a/drivers/gpu/drm/lima/lima_devfreq.c b/drivers/gpu/drm/lima/lima_devfreq.c > > index bbe02817721b..5914442936ed 100644 > > --- a/drivers/gpu/drm/lima/lima_devfreq.c > > +++ b/drivers/gpu/drm/lima/lima_devfreq.c > > @@ -35,18 +35,13 @@ static int lima_devfreq_target(struct device *dev, unsigned long *freq, > > u32 flags) > > { > > struct dev_pm_opp *opp; > > - int err; > > > > opp = devfreq_recommended_opp(dev, freq, flags); > > if (IS_ERR(opp)) > > return PTR_ERR(opp); > > dev_pm_opp_put(opp); > > > > - err = dev_pm_opp_set_rate(dev, *freq); > > - if (err) > > - return err; > > - > > - return 0; > > + return dev_pm_opp_set_rate(dev, *freq); > > } > > > > static void lima_devfreq_reset(struct lima_devfreq *devfreq) > > -- > > 2.25.1 > >