From patchwork Mon Jan 29 13:55:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "StDenis, Tom" X-Patchwork-Id: 10189759 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 792296020C for ; Mon, 29 Jan 2018 13:56:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6763528741 for ; Mon, 29 Jan 2018 13:56:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C4F628797; Mon, 29 Jan 2018 13:56:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1695E28741 for ; Mon, 29 Jan 2018 13:56:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1C0516E4DD; Mon, 29 Jan 2018 13:55:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0059.outbound.protection.outlook.com [104.47.38.59]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA8756E4BF; Mon, 29 Jan 2018 13:55:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8KgWk+/SCIxL21zEgksrkHPf7wisfCJKV9u2ZvHbjLs=; b=Aw0481FQZyDy/s5Wc9S9V+yoSTArkEnfz7z9GsdPM1t4iH8E6UnZPTO3kCoWFWj7ZuTYGRM4TheTbhunZoGwbDzzRYtZu8VeyAo/SXet0ufI021jBYz2UZ0qwRIqM0b4ePFE1XSVY8H8pPTlTASQ7M4SV+1z+iPTcrMhGtvNaz4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Tom.StDenis@amd.com; Received: from fx8.amd.com (165.204.55.251) by DM5PR1201MB0075.namprd12.prod.outlook.com (10.174.106.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Mon, 29 Jan 2018 13:55:31 +0000 From: Tom St Denis To: amd-gfx@lists.freedesktop.org Subject: [PATCH 07/12] drm/ttm: Fix coding style in ttm_bo_move_memcpy() Date: Mon, 29 Jan 2018 08:55:08 -0500 Message-Id: <20180129135513.22538-8-tom.stdenis@amd.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180129135513.22538-1-tom.stdenis@amd.com> References: <20180129135513.22538-1-tom.stdenis@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: CY4PR14CA0027.namprd14.prod.outlook.com (10.172.162.141) To DM5PR1201MB0075.namprd12.prod.outlook.com (10.174.106.17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 77a1b141-0a68-4637-f5ba-08d5671ff6c4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM5PR1201MB0075; X-Microsoft-Exchange-Diagnostics: 1; DM5PR1201MB0075; 3:rOpFpHKR+x8HkrJQa3iw9HpNXM0JR/S830mYd/0rcja9CvIXU1/tzx+MWjHD9ZNi4Hg1ctG72uvtRnkF3I/MwnsdrsJBZ1KIsUGSvfnU4BRjOW0xsFeG21HJuivhC+6vGTg4gZA5APYIS/+3BV2uTYceC4dds+vmin2StAu+qh19wk6qdUDE+EzEP6exh+1ix77+BadQKiFe3ZUMCXcVdSuapEyf8LpQVTy0gkZye6pbNotYCOvVM4y0oume82Ab; 25:us5CsdyS9iYikf7usWeh3MXXdXgwFjqYq99lrAYkmOzHAtIuyXoqbozysCn2flDNYv3GPQHm9pRlGqWuMgqwjS2Vm0uB+HFPECrQjc6iZwd3eh0QFC3c2QToSb0QISWkfG0eoxWcBqnLpwLxjpzvOwaMl+mVhwRyenANbvffRshraVqGGeZB3tugN0yxOyi5ZX/vhYomv1XK/gLCr6Q8OYtJ54mJNUdlLFaW/PXowWFLwLISm9ZqMXomqN4aEGut9iJWArq+KW2HzW/eeEnJmJGQpv/E01xhMXXAW4paXdGTlHxWjkDPyOHV6mODZOV/wB0KwsBRqsQH+IjRjRn7vg==; 31:KNypk3+x1rbMkkOcKY6BA7B5qf69YPaQlmFVr8kOhu9mcjN0M84tIoJllgZXwfj9bWoqGLYjm6Zrqhz6/89WsyZvGlAOHGgYeTAmkDvcIsouKT6IiWpwW8DI4TjrfBHtZFDC7HecIGi5aekSbVqxvGXsdeEZ0AAioUuKaReofmkrAFqWiadN553MQufLHTeEzBll9pPSyxaXw4QCG7z82rDrlxXMH76TRV6aVVIVCJ0= X-MS-TrafficTypeDiagnostic: DM5PR1201MB0075: X-Microsoft-Exchange-Diagnostics: 1; DM5PR1201MB0075; 20:/MEmU4VnndAGvSqYYz2gG0Q6JZjUHlxcnw48mU8Q5NW1UwKlXhCrqZsgBT0BK2vS2koegrZLcZVVjbjYTaGflPbdPuCxQrRWqgTMhDGUlsoNPsag01nTNzUfqyxbIAmLuVwzt48hm+rDkyJRCJZWHr6yOG9PfJYu3tUk897+nmj41ltqD4fBSWIYngJ7oyc+6aSy+leuvTtz3TjX6cz8VRg7ZwMGCI/8rmvZVDyM2ugoDAPmKCtoZa+g51MHJ06f6B+3LSjO7umrcAQkXdgb8XSyVMbxt9B4xMcEd1SP6XOqyD/Lz0kfXLeZm0btUhyI94Wsa8nDYiZVAgz8dFO8BoY44SBfxua7zDtw0PWaitBF6V3ivOmdHOl2ueS8qtB1GyX7JCem0pY9tMq/W3IGx3jxh/rT4Jiva1nzGrTotohuy5gfVyKObx9QNVEqrFHoe1kK7cdhvFcOtDaqV9lTOQqmHwfH9CNutKCNzqETEYVV8sdC9wrETnLwgbOsX0vA; 4:4XCt1uzbd9nZeQ7iQCiaT4178vx9hj6sxx38R7xctqw1Kpz0StRtPgNVw3BQjI1q0qSt6LY58sIzRkTdwcelwtiDY4MWWnqcyFwDE5RIwQ4Kh6NKs6Q3DxHcJxBckQnOgrC3mRPNlIQhz77/9BaeZPZrxAn2ZaPwIuI5CiHiPG5McKrwK5h4s9uPCYXMxFDgmmPWGlzGwT8ChHN1AaCpSYEcz6MKhmuzpFSoKIuF7X54EoJpawhxuvLBQrPkgKyoHfVG9fg/y5Z1AbqcL6wn9nwKGTfzuYdevQ3zY3cc2kVa9Xgf6piIx/RdqzLCmuoh X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231101)(944501161)(93006095)(93001095)(6055026)(6041288)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:DM5PR1201MB0075; BCL:0; PCL:0; RULEID:; SRVR:DM5PR1201MB0075; X-Forefront-PRVS: 0567A15835 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(396003)(39860400002)(346002)(366004)(189003)(199004)(59450400001)(76176011)(478600001)(7696005)(450100002)(7736002)(52116002)(6486002)(23676004)(86362001)(305945005)(2870700001)(53936002)(66066001)(5660300001)(72206003)(47776003)(4326008)(386003)(81166006)(97736004)(2361001)(25786009)(2351001)(106356001)(316002)(6666003)(8936002)(2950100002)(16526019)(2906002)(81156014)(68736007)(6916009)(186003)(36756003)(105586002)(8676002)(53416004)(50226002)(1076002)(3846002)(6116002)(50466002)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR1201MB0075; H:fx8.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyMDFNQjAwNzU7MjM6NERWcTZBS0pyL0pWejk3bEEyd0ZjbG1u?= =?utf-8?B?S3pCZ0UvbWc2WTZBaVBMZS9QU3RQY21rZElhaTBOczNHaTBqQStERVZwbFZV?= =?utf-8?B?NjJYbVNLcWdNYS80b2VxNjlBU0ozd0FqdFBnTFk0UFBQNDc0ek9rK0MwVHhp?= =?utf-8?B?MnUvMmZEL1JnRmtkY2FFNTJpR2ZMRFZKaGVjM1NTWXhCekRsY1F3TWs1bG4w?= =?utf-8?B?VEN2c3kySUtjNjYvWjVEQlNiL1Urd3NFTmFZMGRJRitjU0hlTStOUTU5ajIr?= =?utf-8?B?czdzUFVTeDc1MUkvRVdDZDlJM25PanBxSGQ1aitTSWtjNUxDaFlqWElOMHFs?= =?utf-8?B?Ky9DRC9XUnprdlFDS2MreWk3cHFWMVQxMGRmNTVsODZxTXo5WnNBYnJjUEhQ?= =?utf-8?B?aG1wMDQ2eW1US0h5TFo3UWdtZmZzbFNxMTJmMzlZK2lwQ2ZQRU5LMmduMm1J?= =?utf-8?B?aTJJOVJOU05aWVh6ZFlFRE56a2cyTGNXRVNyb0RZM0lndXYzdDhza09KSzNY?= =?utf-8?B?c0FSR0tiWnJBWDVjK1h1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RMHXkfqeO/Srld4xapgMaYJ+c9gxogH7btoRp570TbcwlbeNJL5T+eF9sSVdIW2eNx6zCKACYFhzJjgMGKu7ar7jP9d4nt8MEhgY8cYajgdSm1 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR1201MB0075; 20:/F3ivCb76xz6KYWyE56i+uWYt3SaUYsfYt8APAPZFcr1KhtmtiI2omMQN0JOpgQhFABwYiSgM5TG3c9JIUJf+07iScpGxioLKC4LrueGN3WBKm/TgHSi1k89KTsVKf3/6JstrPbVsGnQ1OnAiUnQhkUZU3+K2NJUjR3Xw4apAWg4VmtGWBdmxxE4Dc/k6UjKOdZUFhB3mcrWTG22slUoLVKaLnUA3vxiWCvmzOxrz7jUL44Q1pj9YTNL5F7Y0IdE X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2018 13:55:31.7512 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77a1b141-0a68-4637-f5ba-08d5671ff6c4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0075 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom St Denis , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add missing {} braces. Signed-off-by: Tom St Denis Reviewed-by: Christian König --- drivers/gpu/drm/ttm/ttm_bo_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index 153de1bf0232..33ffe286f3a5 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c @@ -402,8 +402,9 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo, PAGE_KERNEL); ret = ttm_copy_io_ttm_page(ttm, old_iomap, page, prot); - } else + } else { ret = ttm_copy_io_page(new_iomap, old_iomap, page); + } if (ret) goto out1; }