From patchwork Wed Nov 10 12:05:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: CGEL X-Patchwork-Id: 12612027 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD70EC4332F for ; Wed, 10 Nov 2021 12:05:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 85F6B611ED for ; Wed, 10 Nov 2021 12:05:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 85F6B611ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 70A346E0D4; Wed, 10 Nov 2021 12:05:21 +0000 (UTC) Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by gabe.freedesktop.org (Postfix) with ESMTPS id 194AE6E086; Wed, 10 Nov 2021 12:05:20 +0000 (UTC) Received: by mail-pl1-x634.google.com with SMTP id u17so2777362plg.9; Wed, 10 Nov 2021 04:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SmZpl8+j/iKc0sB5URMOhtFVFzKAZretNZR5phX8V54=; b=AaiaX03JzpUeQ855h1+dV9l4+ukSmXVfDTYDUIvRLiaosXsME3ilMxt6JVmhe3eg0D hEI8vZ/w0nFcav9KXmHFLiYPNUYV9Iq790h1ZUCk3NxUlH46TZhg9ttbXmTf9XQmlYya BKo3z3+De7+ajAo6ETVtdZjNKkdFyOauMMbR/stun+H8uoTsNuTF9JdnQG/2XrQ0wblS nvpjiL0Pbcbpw5iuPJFkMcBYjSRXGXqj/gV7LZO+Xe31ATHqy8NYxRjGo14yRul/841d dPgJWb1g9WtsHZyDJff21j+hMeiOrF77u40X6gZQpYjiZ4BKiva4FqCa4QEwFIfdmzw6 80jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SmZpl8+j/iKc0sB5URMOhtFVFzKAZretNZR5phX8V54=; b=qv/TauvlHwQVXpdYbOvS6JH2CzAJ+9Vf/nHDJncJnWE0pjiUmnyAZ+Vux9SnVcsJTh SF0xYHVOfPR7INOl23HxagBj0rwRaqTidq/fs8Kv0E2Ovmwj7GT65sXDl4/t3T93q728 0ENGUb/aeOfbWIxWAW3pxI2+ZUsYzwaqXE3RYvx2Yd29YFPHh++jmOEwC+Ixc0wFIY54 rnZeWvpxClIDiV8szTvhfNwZ/Fh9X/U/WpsvKdseI93h6MwSfD5RcBysaOuopuysq/FF ar5cf0hWo49UWClqlgvooZ2g6kf6Vxwp6iPivXwbda/T0DEDqHXEU97Ay1oAAGRfCu09 Rikg== X-Gm-Message-State: AOAM532bPmp+DACBW87Xp+DXaGj6dODMTKQo18dcS4IV/BOTI8/KawbI OfoHbTFCxnhRs8JchlGZHxU= X-Google-Smtp-Source: ABdhPJxp1tSXAzZDWhWtzwlC+WpFHm5YVQ6u/yn2MK4ACIYuoQeY9VzDPTcS+qoyy0lkfOpDtimAVA== X-Received: by 2002:a17:902:e294:b0:143:86a8:c56d with SMTP id o20-20020a170902e29400b0014386a8c56dmr2079842plc.22.1636545919705; Wed, 10 Nov 2021 04:05:19 -0800 (PST) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id on6sm7070697pjb.47.2021.11.10.04.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 04:05:19 -0800 (PST) From: cgel.zte@gmail.com X-Google-Original-From: deng.changcheng@zte.com.cn To: robdclark@gmail.com Subject: [PATCH linux-next] drm/msm/dp: remove unneeded variable Date: Wed, 10 Nov 2021 12:05:12 +0000 Message-Id: <20211110120512.150940-1-deng.changcheng@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: freedreno@lists.freedesktop.org, airlied@linux.ie, linux-arm-msm@vger.kernel.org, Zeal Robot , deng.changcheng@zte.com.cn, abhinavk@codeaurora.org, swboyd@chromium.org, dri-devel@lists.freedesktop.org, sean@poorly.run, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Changcheng Deng Fix the following coccicheck review: ./drivers/gpu/drm/msm/dp/dp_debug.c: Unneeded variable Remove unneeded variable used to store return value. Reported-by: Zeal Robot Signed-off-by: Changcheng Deng --- drivers/gpu/drm/msm/dp/dp_debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_debug.c b/drivers/gpu/drm/msm/dp/dp_debug.c index 2f6247e80e9d..c5c75273d1e5 100644 --- a/drivers/gpu/drm/msm/dp/dp_debug.c +++ b/drivers/gpu/drm/msm/dp/dp_debug.c @@ -365,7 +365,6 @@ static const struct file_operations test_active_fops = { static int dp_debug_init(struct dp_debug *dp_debug, struct drm_minor *minor) { - int rc = 0; struct dp_debug_private *debug = container_of(dp_debug, struct dp_debug_private, dp_debug); @@ -386,7 +385,7 @@ static int dp_debug_init(struct dp_debug *dp_debug, struct drm_minor *minor) debug->root = minor->debugfs_root; - return rc; + return 0; } struct dp_debug *dp_debug_get(struct device *dev, struct dp_panel *panel,