Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5173647rwb; Tue, 6 Sep 2022 20:54:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Feqxd0uPUQWUDa5zw/+yLcgXtRoHNd2KkuuYMN0mbS32h0Lu3eqPEtS0w+xfriJCJWUal X-Received: by 2002:a05:6402:5ca:b0:445:c80a:3c2 with SMTP id n10-20020a05640205ca00b00445c80a03c2mr1358494edx.247.1662522870208; Tue, 06 Sep 2022 20:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662522870; cv=none; d=google.com; s=arc-20160816; b=s4r33MjDrAR6Uiuvmov2WjPsJcRzQwsvqu5Mzx8Qxu+OhMG7w0Ta3iy9d2fJOX//+L ifHWRlaExorAdGzGdYz2NRLn7oRh6ztyEM7qnX+vrLqIlCGi5vzJkEHWDlIsnKd6nfNn GLBRyEiOZkJncLjbId5qN3J8fsMZ7P6tpNUPEGvKxlzMe+ZLMbTV1UHWgv3I00BZ6oIY I85tfMv+YtVhZdiGxeQqwusHhqYYD2pwjo3IxU4dUV2qVKkkNyOW0gydwq4gADXlNmGv 8M4DfaSFSIdPX+r/0d4fiE+pRtxzi/o5wrBq+mXApL16HkMaVKhCoJii8cQTqEP/VgTd wXwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=ctiobmSF3RrXz3FUKoymTBWVHqZ5b815RFLtjCJXojM=; b=dhI/AnMnr6+rmb4c4V3NEDS1HAw1VkyYhPisEC+4VC/wLMFxmeoX0DrksESbAzRIR4 KbF3DIMUcwdUoQJQ49FCLGdKwsPn2fAVTO8pqaUERXLY5ioUJ4kLc5XAGgYA2gM67zm3 jThN5kA3ULi0/urfNLDgNi0GVotd1eoKyQ8vrOcJUdkPfEMZPd8C4+rWNY3Vn5Xs5Zjv p6+TXXa1Gr6Ep+rVPiyiG06BOj6fejssDRw88x3ioURY7WErjzSEheYd1FFSrjH+YsXe xumsj+H8A83u6QB7ndkk6VlH8A1vU8Xv74z8HEhoHKVs6RSx95WBz9fBAvcO2M0T8Ddt Ixjg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p35-20020a056402502300b0044875bb5c8esi3595038eda.488.2022.09.06.20.54.05; Tue, 06 Sep 2022 20:54:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbiIGDaM (ORCPT + 99 others); Tue, 6 Sep 2022 23:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229862AbiIGDaE (ORCPT ); Tue, 6 Sep 2022 23:30:04 -0400 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 378473F310 for ; Tue, 6 Sep 2022 20:30:00 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id B553F1E80D59; Wed, 7 Sep 2022 11:28:48 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ngmRjKLa8Til; Wed, 7 Sep 2022 11:28:46 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id EA2EB1E80D57; Wed, 7 Sep 2022 11:28:45 +0800 (CST) From: Li zeming To: christian.koenig@amd.com, ray.huang@amd.com, airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] drm/ttm: Remove unnecessary '0' values from ret Date: Wed, 7 Sep 2022 11:29:34 +0800 Message-Id: <20220907032934.4490-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 variable ret is assigned in the judgment branch statement, he does not need to initialize the assignment. Signed-off-by: Li zeming --- include/drm/ttm/ttm_bo_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 897b88f0bd59..1afa891f488a 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -106,7 +106,7 @@ static inline int ttm_bo_reserve(struct ttm_buffer_object *bo, bool interruptible, bool no_wait, struct ww_acquire_ctx *ticket) { - int ret = 0; + int ret; if (no_wait) { bool success; -- 2.18.2