Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5373862rwb; Wed, 7 Sep 2022 01:37:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR4uSp0Fzi/ILy6hl4l2bVuD5xjl/QCH4qj2neHHQildilYQh4CHyBGO68PWRzBQs87+PrC8 X-Received: by 2002:a17:907:2bd1:b0:73d:d154:8e42 with SMTP id gv17-20020a1709072bd100b0073dd1548e42mr1549018ejc.585.1662539823409; Wed, 07 Sep 2022 01:37:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662539823; cv=pass; d=google.com; s=arc-20160816; b=FDH/wD3a/IRwYuh/Bg3dm86RDVG2rNBUOziqtjHfCo7XTajS3NE7xy4CI/lbSMXAG9 26wcN0rQ/zZsjywqExsrVRiufNR5dWr0cGCFFiGwFpt9l8Ng7TMomtbRoHesyjMlfcMV 5NxFgMl0dNS3JHPOZ5FI6xOs3DcZ05EEzX6Tg/jXoUpWvYfRYXjN9zDqGzpKJvXulC+C FiSsgK6YP7ZNN9ZXyctf32fprQQy8xWSruU3KGEiVpUt19l0v8cUgT+9vg4CMD4EDuhc 0jO7eeqBoO5rEmQkqZF4oRgAFbYRvNfVXqnKCk0laPRCDsPGn69xHUbpSpdgL7j0iIvy 0qyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=s+Fj/bEJMwlqepfR2tbb2sIQr11UJjDvEO+7wdatJ2I=; b=W5w0/4i/yWtAFQq8EUYPy4Y9OS3KV9MGSwh8zIn18Qw6fTSEP/ck0qC9Izsru41ld4 tos+95yjRSYsbrMovWownDdkErBppNvVP7dfxLIemHc7U7FnmWpWxibpKe7MnpuKe1iE f6N939FZHV5WgZcNQRWRVOQ27FwPAz/wGSv5Osst+lkyfCuXymss4TePEnlOF5bWemVi 8BZAcPyJjlg782mC3U89FyxZvR5yMLt/qFmI/n6waiLRiAFHcj5lYaBFV4+iBsQcQdE2 ATS1fHBxKC3PHgv/d0S+ONXbhxcrdyvyU4b/5tZaJ44iFr5ob+L6aDmgPIoVuZGcIeEw 494w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=M3B101TC; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw14-20020a056402228e00b0044ebc68596dsi4046090edb.538.2022.09.07.01.36.38; Wed, 07 Sep 2022 01:37:03 -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=@amd.com header.s=selector1 header.b=M3B101TC; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbiIGHoU (ORCPT + 99 others); Wed, 7 Sep 2022 03:44:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbiIGHoT (ORCPT ); Wed, 7 Sep 2022 03:44:19 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2053.outbound.protection.outlook.com [40.107.101.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89D579E0ED for ; Wed, 7 Sep 2022 00:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ibTOWhBeUv73v/INWMozw/NvM5WAHiXKcOILr3qT+3MRw7vGXX+V+p0KCKiw80SL9iwbdnVzoYoBXCUFWAV2jIMmXljj/8yT7bGK/M12k+VEfCGZixGYypAgslvQMB3lyEhMe3qxfMSg5PTqhY1PkBiklIja0izUyX9yS8RMiFIEXqvDP1TTE3pI6oYYgCd+5h9JygzK8Nvl782s7X/oWPI2vev5tgDrpR/8KN6S6Q5wc6kKBelQWJmAH48shqWCXoSlNltFDBk1usOO+h7f8vfuzb8T41NCUGI4Zvmfm/emFM9NnJdmaZfVRdEtkq1t3T7JYUQN08UJMjaj6PKSOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=s+Fj/bEJMwlqepfR2tbb2sIQr11UJjDvEO+7wdatJ2I=; b=ERqzIyPGvZUHWmD6Aw8hfkXoSq4qRj4a4dxiA8kBGHO0/3NNo1QQppeGPE+paW7mlrmapA0jheLAVnxkZ2JmLjtTZOIRys8PHucP4hupjIV9sS3WglKQ5UlzboY97l9rtGMzrv8J7/tT14pDiq5Fps1nWDtW2wOoyNcy9QRWPL/sAR2flIeriJKZXSxMzBj9jOFySFV40amldvqNwDz6YCUAnrtzpuV8wjMadSrKEAu9I3RbgBpxTlmh5vh8lvjQuFI7qVEtzCstMV/CCyjMkv3kgNqaJX27KQxjE1fRusCJHW6hxpIES+Ad8k5dVCHhTnOFMR8of8WNNwejlgAZEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s+Fj/bEJMwlqepfR2tbb2sIQr11UJjDvEO+7wdatJ2I=; b=M3B101TCKi2/U26UColuFwRiObe1x46wk5yRUk6v+2Z8ofpyFC/mutxXoEJNHG9tnVJ0voEDDoM9twAQsxBBzzfow+vT/ZBef2KtVxWtjKkJZx2dtpdccH4nm023Bc1MMykboup9hy52yCRkrQt4Twy0fKMdKzxnP+KuiJ/Beu4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by SJ1PR12MB6313.namprd12.prod.outlook.com (2603:10b6:a03:458::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.14; Wed, 7 Sep 2022 07:44:12 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::653f:e59b:3f40:8fed]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::653f:e59b:3f40:8fed%6]) with mapi id 15.20.5612.012; Wed, 7 Sep 2022 07:44:12 +0000 Message-ID: Date: Wed, 7 Sep 2022 09:44:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] drm/ttm: Remove unnecessary '0' values from ret Content-Language: en-US To: Li zeming , ray.huang@amd.com, airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20220907032934.4490-1-zeming@nfschina.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20220907032934.4490-1-zeming@nfschina.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0131.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:94::14) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|SJ1PR12MB6313:EE_ X-MS-Office365-Filtering-Correlation-Id: f3372158-7dd1-424b-a62c-08da90a4c18f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lnpd3JiP0HvxTLtGM9BCz91rnvid27+t/CW8ZUZRJdvZGBNK+2IleN4DK7xAi7PyI7JQs4ldNiM12K7wqyy3eNK4fib548IBikjIwIC8LD5axSCq2+dS6DqmR49//LEimmSm6VKa3Ljfnz6a0vd0fxV3mR48QlQ+ukVB3aYhPEZ0pB2YdYYGjjd3q0lM514p9DPtHjCSymbzvUpY4F1RJQ4Jz7WvvxsdElzmKi57iXWglWI3HbXPC0xoqC51i0ar3fmKYHGVWynBcrWsreYBdkHjlBRHfP0phMRumIfubEcoI46cYxm/QeR8iMDlbl6Wtxep/ReoSlD5HOcieMI/eqFNx8XBEFl+cCHemooJFu/UsyAxetzGbT4qqbK+OGkz14iiHxQLLXbbCN8RGrHK2QFRDEug5OsTcK1ZexQ4AvuHWSSfmPS7cEMGscx22p5XSD/2f6PDbDonilkGSxnGEz5fbqfm0NbNgHQYBEeJG+rsee9ZjlZaLkOOuZiREJB8mwNaIZsyMZQdcL83B6AHy30rhjnMZzfiofEyn9ARwv7e/t2JARI3W5XHtPMB0gb4qeGu5PH6RkaNqAr3bILoFZH1Jtc/0jCCA/Guy7MSQ6Pu6NswQYeZhQNxVn1X89ovx380nZhmQ2KTYuZIMgfg4Ga0q6Z4tKZ30RE461HK7SkiGL2hY23ODQPnCDfBtc/MyyiH5piNws3liHHYnWe7MUagtwHK1674p6BPfweCk7/GU6CewwzageDdK1bo60IPdTL9DGdfFmLpBEYM2h1Wze+uWEH9pi3Px3bjkZio0gw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(366004)(39860400002)(396003)(346002)(376002)(136003)(8676002)(5660300002)(38100700002)(478600001)(6512007)(316002)(66946007)(66556008)(66476007)(4326008)(83380400001)(4744005)(8936002)(2616005)(186003)(6506007)(41300700001)(2906002)(6486002)(26005)(6666004)(31696002)(36756003)(31686004)(86362001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UDlxME9vZEN2cGp3WkFKUmEvMDYwL21OdjVrMVZhaWo3THY1dkEweEFnNk12?= =?utf-8?B?dkdIY05EN1QyUFczaklLVmJsaGkzQXR5cTlpZWZJQVNQYmNzdWVEaHR5Qmh3?= =?utf-8?B?RDdUOFoycFNMZWVTODFIZFljWWxyM25JMnV1NWZZeFR1cEhqNUJ2LytkdE9B?= =?utf-8?B?RkxnNHoxT2dpVWJzbUE0TXhaSXR5ZlYvR0xFWjlmeEpyREh4YmNIc0NBdnRR?= =?utf-8?B?NEFxUFBLcmZjaENBS2dmZEFwOXFwMDRrQmJWOHJFMVRYSXhpQkJ1S1J0SWtu?= =?utf-8?B?UFgwSlB3UUQyZTM0cWZHK2J4TVFpK1pMQjVmMHp0SVlrMVJpUzlBQTJiUFJR?= =?utf-8?B?KzFJNTVkTmticC9hNjE2MmJFUXAybk5TeUZsY2JlNEllSnBTcGpjcjQ5aXll?= =?utf-8?B?emttS2FmNjRETFhidkNqV0VBRWlkQzNVS1NwVmdHMzdaZkh2TUk0WC9lSits?= =?utf-8?B?endTano5R1FtNnFIalY4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CbGIyWDBCUlIwMWsyR01WNUJnQzFNSERVdlhpSG9DbnI5RUpDMU43eEM5?= =?utf-8?B?dmxTNDZmaTdtNkhVWHR2TE90V2MrazlmVHlzd205RVpnMytZdEVjQjVNcUFq?= =?utf-8?B?NnBoMnMvcTVKdFJ0c1haVjdJU21nenhGWjdOaytIZENDNjB2by9ZUW1nZGNF?= =?utf-8?B?My9nNlp5R0FKQlJzOG92d2Q0QjNDbm9kdEMrRWFCS1B2bGhqbnVDNXg1MFF5?= =?utf-8?B?WjR1WUFMMTNXdHh2SExnWUhYbG9yRXZKM0pVQm0xRVdhcG5BZVhDNmMrVFho?= =?utf-8?B?NjBkcEM1SHJCY2FrOGFacTBiRW5iSmZVcXZvOTVQZFVEcUJZOU4raDNwa0NW?= =?utf-8?B?Y1VoSnlYbnBMSzRqY0JxbXkzU2FOeVhQcnRGMEc2YXZvQ2dOU3hZd3NMTGxM?= =?utf-8?B?OW9JaG9pWWlIMitEQ0lXYUpYZUpuQk9IcGZPZFBmS0dhUFJqc1hsRXpHb1Nn?= =?utf-8?B?UFVmVVhDU0NVTjE4Si9HRkZ2ZWhNWXVLZVJFYVAxcUsxcU02bkRuWkdMU2lS?= =?utf-8?B?eVEvQWJwQnlNN3k5MEd6dXBUZFN5YkRtcFplZXFWUHl1cThXMXBTTDhTVGFh?= =?utf-8?B?cEZNTEROWHI1S2RTd2grcU1ZQkVqMysrdTVsd2hPOHdYVmp4V1hFemNJTWN3?= =?utf-8?B?ZXlyWE9HcmZ0a1M0MFNVNVQwTTltWHJBS3RhMm9iTHo1UW9RYW9FalIrVEVU?= =?utf-8?Q?80ZGGPlGTglWg7W8M0/if983X?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3372158-7dd1-424b-a62c-08da90a4c18f X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2022 07:44:12.5611 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6FwnRyGUwacHD5qHLoSUlyv+GRCopwjPF65FA3zjQ8wnMxU4cPdF48Dh9IhrgaZ8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6313 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Am 07.09.22 um 05:29 schrieb Li zeming: > The variable ret is assigned in the judgment branch statement, he does > not need to initialize the assignment. > > Signed-off-by: Li zeming Reviewed and pushed to drm-misc-next. Thanks, Christian. > --- > 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;