Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp108334rwe; Fri, 26 Aug 2022 01:25:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR6l6nZ20chN3DMi8ogZZA3ZR6IgRSDZYF9PM5PcDCB3fPJOx68QF2tWHvedg740CYk7ClkT X-Received: by 2002:a17:902:f542:b0:173:a8a:d7bf with SMTP id h2-20020a170902f54200b001730a8ad7bfmr2676168plf.134.1661502342774; Fri, 26 Aug 2022 01:25:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661502342; cv=none; d=google.com; s=arc-20160816; b=p1SFmLC9P6gi0bfSmg0uslHxZWuBhNveoeyf2MDlbGWZYd6AKiKmk6rz2c8g84Xg2M aH3NvZey5Pou1zOhhwRJseFxGnDPyKOfEFblyiZW4ywEEwAG1vRXgXLOrEkaoQcv+QGr fTrue7aWjeTJ6z2LDTGpJ43KoFOn+0eB+r9FjafPmK75VCWHpO5i6nPaSZO5Fy3OlVPb 3vnH0wmwVpeRuLGXx1KsYIyJJDG8dIlXbdXChEUdOlT92YVfBFmKthZYx/2+BVw7je5N 56/GskbndrTRr1n0pxiTTlYgk+dhC+qh8SAKaiTckyALebsP7QH37XCy1gUrjuGyOmbi Cs1A== 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=YlkUnf3+W4a/WjCpnPyFQgyVY7X5ih8bJPCrzi0qPuo=; b=VDW0Q4omzT0QOTnpfWN4mPvnK0xgrMxq5nl3u85mRQVSIxVudQRK5MeLHA3FHD9Jci 3h1JE2EkSbiW6M2irblii0kyHMmyFU1ROXTBM8t9QS8kcvNm8jDv8hpT2Dl3595wBDK2 tC282aVmeLkcCUHhQt+kWcc4KPf3CSpQ8KujqesvLL94f4PCQOJHSZf0XDMSyjMmp0lz ARX2JlqqnGQ3wa/FOG9pssIIkRDeIEbz2yHBCVaauOXA8EnHSU87+palWy4eLiZOTCK1 tJYmK21FQ+SgSrAmFqzeWSDuelZadWsOLdz6pLX2f1qnGJ2XIWOaqniyd0nMxkTjPHfs UI8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="CIW0pGf/"; 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 mq18-20020a17090b381200b001fae363bebfsi1531819pjb.142.2022.08.26.01.25.32; Fri, 26 Aug 2022 01:25:42 -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="CIW0pGf/"; 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 S245246AbiHZHYj (ORCPT + 99 others); Fri, 26 Aug 2022 03:24:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245018AbiHZHYh (ORCPT ); Fri, 26 Aug 2022 03:24:37 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0981AD2EB9 for ; Fri, 26 Aug 2022 00:24:37 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id u22so867701plq.12 for ; Fri, 26 Aug 2022 00:24:37 -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=YlkUnf3+W4a/WjCpnPyFQgyVY7X5ih8bJPCrzi0qPuo=; b=CIW0pGf/u/t99gjOXibOein6cCbSDOUW3AZ6CUaNlRXFkxOg/YJmkgdE6hqISHloQQ BAfXaQ/4GGoDH5jUlfb2pB5gCRSePQBZ4jbH4v3djEPpbcgRzwtbVXrXzs6TkKuBxWzl N71OqSLmZjNSjNbo+RusFj/7skLKORw8skk1kLDr850IX2oHuy3hPWmYpN5ZteSvfSFx +QMgWbJMM1ZFYf8I6yvmsrAjvTqpDaIFTFfHtuXMf0S7mHiWMW9+lOwIGD4f9JRZ0RyP +f9LjmSxQMmGKdAshFmwsq8ev5tZcXY36rr+b8f2rcqQ+KOyFatXJnwz5l+sUbKCuKYs 0KXg== 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=YlkUnf3+W4a/WjCpnPyFQgyVY7X5ih8bJPCrzi0qPuo=; b=HX9KqVpYVq4u4lEhzE22VGynZt5A/53WnqtjuiYzrqGsA34qNactlGurlmHRqrpMCr 6xtpVer6/sTVzbH+C5BlbIs71uFhUvI1gdUaZHlei3Cr61d6I5hSy4IqjDBEOJhmIVFG 14qDNW7A39Ey6zAKxqVpHUzQEYVx8KcjgJOmX79H/nbt5W23A/vZbV7jE9RavvggTvWv kSQ2u0e7RqLohmMqSytgqPaHdLHoWyjl/fJLFBb+FqZLhzTe3/mfUUzVuABC2t8zPCqV qGG0CDJbvyY7vDZNzceQHRtJMTdaALpuLgh0UbSU+mejj81JEgMFeGYhErRBJ6z5NvC7 LlqQ== X-Gm-Message-State: ACgBeo1sIw0PwhaxsOd/zFrgTvh0ZywlPKn6HAxJg3kTSJ7ATgj4GFNF 6W94BHkU7ZJJ+fgbVtPVQvE= X-Received: by 2002:a17:90a:5988:b0:1fd:6a33:abf with SMTP id l8-20020a17090a598800b001fd6a330abfmr715935pji.69.1661498676588; Fri, 26 Aug 2022 00:24:36 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id o186-20020a62cdc3000000b005289a50e4c2sm930463pfg.23.2022.08.26.00.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Aug 2022 00:24:36 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: ye.xingchen@zte.com.cn To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, Hawking.Zhang@amd.com, Jack.Xiao@amd.com, guchun.chen@amd.com, Prike.Liang@amd.com, ricetons@gmail.com, Bokun.Zhang@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, ye xingchen , Zeal Robot Subject: [PATCH linux-next] drm/amdgpu: Remove the unneeded result variable Date: Fri, 26 Aug 2022 07:23:57 +0000 Message-Id: <20220826072357.252676-1-ye.xingchen@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 From: ye xingchen Return the value sdma_v5_2_start() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot Signed-off-by: ye xingchen --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index 83c6ccaaa9e4..95689ef4be10 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c @@ -1413,12 +1413,9 @@ static int sdma_v5_2_sw_fini(void *handle) static int sdma_v5_2_hw_init(void *handle) { - int r; struct amdgpu_device *adev = (struct amdgpu_device *)handle; - r = sdma_v5_2_start(adev); - - return r; + return sdma_v5_2_start(adev); } static int sdma_v5_2_hw_fini(void *handle) -- 2.25.1