Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2217060rwb; Mon, 15 Aug 2022 00:42:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR507gfEjSR+i04+cvF8TS5vQ/Bja+m2LamTkB4/IcKfk8WVmBfS26gUx6FePpBhT5eQrhEy X-Received: by 2002:a17:903:248:b0:172:7520:db07 with SMTP id j8-20020a170903024800b001727520db07mr635693plh.76.1660549372676; Mon, 15 Aug 2022 00:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660549372; cv=none; d=google.com; s=arc-20160816; b=NfRdkx9UiaHZihxqI+jTsB6CctdVAa0M1A7mj7Ya/9s5jD9l2BoCL3P+e+NxjwCvp/ jsn5jQI0YI7t+Vmet/+7lqALoagoEnVMAfngO1Prk34bO1sn1l6ceJgr0aYsDzJCTU4k hi+flmTIDqUjnh8uc8cITl+JnTani1Fkaqd327Lcp2oHGHuirgy9OGPQKMCeC87zQiH/ 9EAB9kOWyh5jm9+/itXDhtuH7nweIekPWcydZiHgHIBPElcSOOh2/DHjaCMl+1vXQRlv 6ocdwsC7m+32EIMZdoUsu+yD3mP+VtUNw3dS/vRtGaWtJf5wY1CFTrFGDfaOID2E+J77 OrcQ== 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:dkim-signature; bh=lBxuKExwJiydRUzCxRZG0pdDOfLn9vnu6Gvrg3IOunk=; b=H6r6ux8AX2JpjkdKBJJ70XQ7MYvABPYLFtrpkLukFeGfkn3VG07EC30kbZugP24pYl k3dJWTfDO3UFCIfRYU7XceArr47B26avZYyXSBOfCVfAozVzbcFgXx5VJqfyBf+oI91h nV+O466+UcVSPCxbLM1KXGa5ljid0SIzfFK6zMPUp/1/qaVz5dukljp7cqfNm6Jm7DmH HT5WU5SFGMk7YpNMuy7wLWKI7I2Z1S6AXs4uU9IcLoeGojzPvh3/rcSYaU8Ytjz/UewO sQQqHG29HG4Xbx372FsRxKtVzO59kS4aZTC0BB7X3RtBPW+GJ7MlPPj48TzStPoXqGtt 3N9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N2pYGvni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a63130c000000b003ab358a4d44si9710887pgl.199.2022.08.15.00.42.41; Mon, 15 Aug 2022 00:42:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N2pYGvni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231152AbiHOHB0 (ORCPT + 99 others); Mon, 15 Aug 2022 03:01:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230225AbiHOHBX (ORCPT ); Mon, 15 Aug 2022 03:01:23 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF3C71BE82 for ; Mon, 15 Aug 2022 00:01:22 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id d65-20020a17090a6f4700b001f303a97b14so6043199pjk.1 for ; Mon, 15 Aug 2022 00:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=lBxuKExwJiydRUzCxRZG0pdDOfLn9vnu6Gvrg3IOunk=; b=N2pYGvniog5ztC4WpHJhrj6BeJx9tktZsy+GCUmnqRhXpAxABkZ5aqV9Q0nkMNfvgS ir2vahkblaz1/952V515s81n2Db6xV+r6LR9ZFy5etUzT0MD/rkgSC+aQS18vQ7PeQq3 EV8RTskC5koFGiIDYAyZETNdqzN0BJQLix4lR7x8vmaMTI14jzOKqJvyAWzXi+Q0FaGK xpkXSvzYKRIpRF6K9td0tdRAwp+70PzydSVHL477nXuTwLZLw85Mb7fTaIwvHJdjpPGO cFMzSaiNmWBQ2Dq9jDn1rUCV8uFPuuNcsPPCf13pmU2xAAbvM2C3ToEIqPiVa6wQS0Wn epSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=lBxuKExwJiydRUzCxRZG0pdDOfLn9vnu6Gvrg3IOunk=; b=sTXFA6sVc6VOrFqLdRvupXag6Df732ac9frLVl3iqMR5vx798dOQhzBxY6tyTYQa9j EKjFsYTCc3046dwR0xBZl+ZdQagGtO/0Vu5LqESpLXWeVAbP/ZgH9NYqKlcBzxEjGYUg SyjBSHl0V8kKr74uAeiruyXbVjp1M8e3mHXmrEXUBAPgbVXBDEDfiILwJ9NOJ4c6cmkZ /owTv5fEWdw/dxZi1KzEXcRwrBnP8zK+md2GskkzxsXPTt5o3RDxYKP/HXBbK3STXYC6 bqEm4xKyC2H27aXeIqhBhk4XkC83BKaauLk/lLCjr/PlWkcrsjwGJLuJQ+HxnSWTJBic UhDg== X-Gm-Message-State: ACgBeo1bVTbSv0Ng4F1vyu2RjHqfvaNCLOzQmbWsCCxliE7yTq6cuJBl CPtZIIiMA/qjvhVvah4tABOoIjuqvmwNOAKo X-Received: by 2002:a17:902:d4c1:b0:16f:8311:54bc with SMTP id o1-20020a170902d4c100b0016f831154bcmr14884497plg.25.1660546882289; Mon, 15 Aug 2022 00:01:22 -0700 (PDT) Received: from fedora.. ([103.159.189.139]) by smtp.gmail.com with ESMTPSA id g2-20020aa79dc2000000b0052d27ccea39sm6224743pfq.19.2022.08.15.00.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 00:01:21 -0700 (PDT) From: Khalid Masum To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Cc: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Pan Xinhui , David Airlie , Daniel Vetter , James Zhu , Sonny Jiang , Ruijing Dong , Wan Jiabing , Leo Liu , Khalid Masum Subject: [PATCH linux-next] drm/amdgpu/vcn: Remove unused assignment in vcn_v4_0_stop Date: Mon, 15 Aug 2022 13:00:56 +0600 Message-Id: <20220815070056.10816-1-khalid.masum.92@gmail.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The value assigned from vcn_v4_0_stop_dbg_mode to r is overwritten before it can be used. Remove this assignment. Addresses-Coverity: 1504988 ("Unused value") Fixes: 8da1170a16e4 ("drm/amdgpu: add VCN4 ip block support") Signed-off-by: Khalid Masum --- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c index ca14c3ef742e..80b8a2c66b36 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c @@ -1154,7 +1154,7 @@ static int vcn_v4_0_stop(struct amdgpu_device *adev) fw_shared->sq.queue_mode |= FW_QUEUE_DPG_HOLD_OFF; if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { - r = vcn_v4_0_stop_dpg_mode(adev, i); + vcn_v4_0_stop_dpg_mode(adev, i); continue; } -- 2.37.1