Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp671329pxb; Tue, 2 Feb 2021 15:04:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeq9frVISMRhJ5H+MpQ544oF8mv0gOxC66RZ018ugafQRwQT/4eIMvAje6UH405M8S8agm X-Received: by 2002:a17:907:2088:: with SMTP id pv8mr135148ejb.131.1612307064290; Tue, 02 Feb 2021 15:04:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612307064; cv=none; d=google.com; s=arc-20160816; b=pJdhr3954iso/WEwA0wPUKHhHx+3xfMwN+4KXjXh4LOlCNHXyp3n73NpddiQT3zik1 hJOZ7GF+UDFZuz+58OurSV2vs6nJSBfTL/DrcpWQluw4ReJ4tX3kR9WJbC9XA63rQGbl jfnuBQYpWYtrPUlAsn4nBtQHcFWPaIUvwyXDwgIhbV60kFgAuti55hRM8c+o6nwrUQZA 8vNL6CkX2qvmJEpw9kLO+EBog0EEO2RUYGrYw7Tw2T1wDOsEn6B8qDYfdtqdBZTvUpVs H2ZE9ZLZ4mqmHpc9r6l9Vq+eFvvuI+MJmTWBeyfCchs4AtcJTD5r0IImscPgRL+EWsHC nWBA== 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=YMlokKzdK8V+Gvn42ll3ctucK3HqZBs6Jki/pOm978k=; b=pUqgCeHBODPBFLJxbq1uFdJQXDdY9BYiQbOiBOyeaXqfoZHqznJMNCZtsllBXZd1Wf aX08NVJy7ISZXeX4GGHEc5DqN5CoxGMBDp1fzI5PkipJpFzB6FacxArZcB4qJm+t8ui/ iUf7zO2OFF0o0Us108St/doOHx7vJCj1Y1hVopOJbLKiG1vRzj9lHxHi7ffA7lKVoN6B pzvwfq8sscGwyV6zJXWm5vcruHb++DpWRQcO/TvFccqiPQ6J+YRdQ8DKelzSMWnL6orP KP6l9I8usHrOVIvBjwZBf0Nlu4jCq7/SILM2TbmktcdnXcms4fW8p5zlJrQ/zYyDW9hR yAPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CJkHp49Y; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si111352edb.227.2021.02.02.15.03.59; Tue, 02 Feb 2021 15:04:24 -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=@google.com header.s=20161025 header.b=CJkHp49Y; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236310AbhBBQZP (ORCPT + 99 others); Tue, 2 Feb 2021 11:25:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236252AbhBBQXD (ORCPT ); Tue, 2 Feb 2021 11:23:03 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9C03C0611BC for ; Tue, 2 Feb 2021 08:19:27 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id c2so23530519edr.11 for ; Tue, 02 Feb 2021 08:19:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YMlokKzdK8V+Gvn42ll3ctucK3HqZBs6Jki/pOm978k=; b=CJkHp49YHJzedJgJ8H0hrsZdj+gxcN3BAsvOFGka+ihZA4DTtNVEF5t6RKE0TjxW2v 3VMpxwUMuwbNi+sSTVjV8U9TbMQR0g84EXXXwMnBwLizunO/vn7NmdkDEm3nB97gJTge CmQx3qInSpzwbtaBji+YfXyAplBiO9PFpqcoQ0ydL6y+RMvM1c0F3g9IW/lFuwUbT5i2 qsaxe9NAtjm1ocM5j13weD5kinZM7PA6gEygB1wxycnQH2CQLBM2UcnuYsGyVzyaSeIq biGF22X3wYmB4rJilAkhYYsEww8QJ/4taedDev41OVAc/XEl2Hmuu3ClRaJTCidCqhBc rsXg== 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=YMlokKzdK8V+Gvn42ll3ctucK3HqZBs6Jki/pOm978k=; b=P4oAkMdYFbRqhcPiErvJJWaMC/vXyVbiEhFDWgbsIrZ4ZYiFQ/mFvSuvHxsxRtUFOD gr2HU3+0R/JD6hrXPS4d34/xjJ5xa8olLchvBXqZTxP4rBZie4hLkvRM7FXTKBujZ28f z5aFIimBZV56NurgwkSrVWGBoUNURZbncG3Qc5fRpAJV7l6e8ShS1RbTHP6obyEk6XLx NYCJ/wo3WxPZGYhvt2t31W6aJemmpXV297XoYPmFrNDXzIQGU02Z8t3Krrs5Bj1HTWFz S1VbswPnFhC0ilaCmUrjr7iQjJaJ9zwpDIierMzRqyG6o7SkLchpWOFMfdsPgPTd5Uck imAg== X-Gm-Message-State: AOAM530pOy+iCnyq5hiNuLlX8vwCtjwYGoLaAao+iVQ7aiORThPHEUY8 birP7Us7mu5bQNPNQTTvveIvKniCXFxQrnrK20Zs8Q== X-Received: by 2002:a05:6402:202a:: with SMTP id ay10mr3681976edb.93.1612282766286; Tue, 02 Feb 2021 08:19:26 -0800 (PST) MIME-Version: 1.0 References: <20210202123214.15787-1-bernard@vivo.com> In-Reply-To: <20210202123214.15787-1-bernard@vivo.com> From: Guenter Roeck Date: Tue, 2 Feb 2021 08:19:14 -0800 Message-ID: Subject: Re: [PATCH] drm/msm: remove unneeded variable: "rc" To: Bernard Zhao Cc: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Kuogee Hsieh , Stephen Boyd , Abhinav Kumar , Guenter Roeck , Chandan Uddaraju , linux-arm-msm , Maling list - DRI developers , freedreno , linux-kernel , opensource.kernel@vivo.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 2, 2021 at 4:32 AM Bernard Zhao wrote: > > remove unneeded variable: "rc". > > Signed-off-by: Bernard Zhao Reviewed-by: Guenter Roeck > > --- > drivers/gpu/drm/msm/dp/dp_panel.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp/dp_panel.c > index d1780bcac8cc..9cc816663668 100644 > --- a/drivers/gpu/drm/msm/dp/dp_panel.c > +++ b/drivers/gpu/drm/msm/dp/dp_panel.c > @@ -409,7 +409,6 @@ int dp_panel_timing_cfg(struct dp_panel *dp_panel) > > int dp_panel_init_panel_info(struct dp_panel *dp_panel) > { > - int rc = 0; > struct drm_display_mode *drm_mode; > > drm_mode = &dp_panel->dp_mode.drm_mode; > @@ -436,7 +435,7 @@ int dp_panel_init_panel_info(struct dp_panel *dp_panel) > min_t(u32, dp_panel->dp_mode.bpp, 30)); > DRM_DEBUG_DP("updated bpp = %d\n", dp_panel->dp_mode.bpp); > > - return rc; > + return 0; > } > > struct dp_panel *dp_panel_get(struct dp_panel_in *in) > -- > 2.29.0 >