Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 891BBC43603 for ; Thu, 19 Dec 2019 04:52:29 +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 5801B20684 for ; Thu, 19 Dec 2019 04:52:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KC9difHR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5801B20684 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=amd-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C12D86E072; Thu, 19 Dec 2019 04:52:28 +0000 (UTC) Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE2EF6E072 for ; Thu, 19 Dec 2019 04:52:27 +0000 (UTC) Received: by mail-qv1-xf42.google.com with SMTP id p2so1723002qvo.10 for ; Wed, 18 Dec 2019 20:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QKOCD0LDZRAyQowWKNRbJUz3IA9RLPvkeXVUNTEqzXs=; b=KC9difHRtOwdfaVH5ax7A4pg/IkHCkTtD6Ur+e2NPh9omMGyglqzWE57FkMESzjwDZ rKZlZzZbXzAPMwWv8xDTyETjK8DhA5icjoTmN2oveczLNUgBy7KUGoRu4/pxfA5g3qMR hKpEaqfZGkok5JWaVTb7kqSvV7YKWm/rnQzDRj2rdkQRcwbh+Fo4nA0P7JIu8LPbmZYx l6gS2TyTNVj42em4Tinp9Eyhat2lExXddjzT1qNOX+eninvPPhGJRKkmwgbx30srG6yn 7mdZhR4bMoEZHPyd6Atn0R32O0I0AYt6pme7yu5ehp2k1zu76FrqQ138ZpOKXkWh1upu DVFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QKOCD0LDZRAyQowWKNRbJUz3IA9RLPvkeXVUNTEqzXs=; b=Zrg9QQpEQQpLM8tm2MIR8vXC7xDnO6ARjNsaLaKL76Ifx6RTSUjL1QHBs10a/l2jCV EpGE1u9sGE3mTT6ta0KfkbDcUIg03v66iMjL5qHa6LTnsuVVxev1clcgwzqMgM4IvKXO Ez7SS1mTlS8VL22ycosi85jqBFuRgU1LJC/IlHVMzFdQ01UgkIdGzTw1ur/v1SDEfCJT OqLCRAPbFCJJ9AVMEPs0zd4fvtiQg4VGUd9VRCTBHJ77CukjJ/LcTftc1NyCxS9T/JZP ALhVSMUBSlHkIpv/UHWMyLBokQ1ieCiKoAihUmjOYVKSar6STQHpqOvBgBdOHlite2Pk Z/gQ== X-Gm-Message-State: APjAAAUvQSajmWCAVz2sFXWulbUprWBDTN46ICjyEuShlicWd7pvcDcF LeaF2NsOZ8msqRWItyCK3sELhDp9 X-Google-Smtp-Source: APXvYqwG+7EnWG/meEi6jNc92MJoZ8rn+dpFrnBPD49Fc1lJrvnMPmaadC0CI/nei1iSSQfuIf5Vpw== X-Received: by 2002:ad4:4182:: with SMTP id e2mr5937319qvp.187.1576731146860; Wed, 18 Dec 2019 20:52:26 -0800 (PST) Received: from localhost.localdomain ([71.219.59.120]) by smtp.gmail.com with ESMTPSA id r10sm1387481qkm.23.2019.12.18.20.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 20:52:26 -0800 (PST) From: Alex Deucher X-Google-Original-From: Alex Deucher To: amd-gfx@lists.freedesktop.org Subject: [PATCH] drm/amdgpu/vcn2.5: Silence a compiler warning Date: Wed, 18 Dec 2019 23:52:17 -0500 Message-Id: <20191219045217.266476-1-alexander.deucher@amd.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex Deucher Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Set r to 0 as a default value. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c index 3271de38cb08..4ea8e20ed15d 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c @@ -250,7 +250,7 @@ static int vcn_v2_5_hw_init(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; struct amdgpu_ring *ring; - int i, j, r; + int i, j, r = 0; if (amdgpu_sriov_vf(adev)) r = vcn_v2_5_sriov_start(adev); -- 2.24.1 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx