From patchwork Fri Feb 23 00:00:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10236643 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 2C87260225 for ; Fri, 23 Feb 2018 00:00:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22FF629090 for ; Fri, 23 Feb 2018 00:00:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17A2A29093; Fri, 23 Feb 2018 00:00:41 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 A45AF29091 for ; Fri, 23 Feb 2018 00:00:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E1506EDE2; Fri, 23 Feb 2018 00:00:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ua0-x243.google.com (mail-ua0-x243.google.com [IPv6:2607:f8b0:400c:c08::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id B5BB86ED89 for ; Fri, 23 Feb 2018 00:00:37 +0000 (UTC) Received: by mail-ua0-x243.google.com with SMTP id b23so2072491uak.9 for ; Thu, 22 Feb 2018 16:00:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=aAo9v8X1x0zpdiooEJ5h5gKVMPffELsEVgv4BpTOfUM=; b=Z/4tTyTvPIhiBwvwqHCw/SA4Gh0uVb04u4mXsUs2NDTLlaD3JQdr+sQdQjL6wOoXDT j33odQYrFgyrtopw1m8naXd/mebX/9AAiTln72kls5byuwF5M1PAlPIH7D8aoI/RV3ux 8twWOwc4Lk0g5HBMtdBYd9YA7gK5gzTFuWp4PNMYa1ZeMAgmERtq26klzP5Ps1+MtmWC 6aaTRg0bWTa5NuTRYzjt79QaM7UBpXTjYDGrb5yPuYp0cEmFzj0GmreOHQN9z6ObtAhc vjawFlnYunhZKVwSRp4TrTxsHiE7gKHgGqFH+pXat6zx18rChxNe8fp3cq5o3zFpAvJg O0lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aAo9v8X1x0zpdiooEJ5h5gKVMPffELsEVgv4BpTOfUM=; b=QMqDOhU/cuNaI4csN0qmEfAp+AFo47I+wdQYvCeZ0OaoXtu9+xuz9n1ZFXBGXcd8Aj +yfY+fPIybgntZaIcoiM/q5Y65q04jI+vXkAhFLh87OVsXszqLIvhLmGm2y+fG5ABowl xl5VxAIDN5lrZ8zQahA2meYmYpSFtyaoyHachUZj9CMO30IN+U8fHqs0Ru2Zyd+2nmgi sNPqfp3u390MgizRyX6NtguyCduWAINBEtzBpOvuTFZpXzbt1B8fOexSYOoOCqm50OYt RpqizWRCuBlqrEBSZHJgc30IR/IoTE2zjZedzuhiVXVdubPFpFyV5mlFL3M0BJybBk++ F7Rg== X-Gm-Message-State: APf1xPAwRIaGiWVw15Mqb8yKemycrHabDx5Otwl6ktRX8f9ypPIvJq8H 3kJMu/bqjhfNxut2aPYdXI4= X-Google-Smtp-Source: AH8x227X9JQUfkRKkCwSpoYuPmo/+bsg2M74d4dB9LDBbZcgE1ivahaybshAP60W3ZcW5RyhZf3q/A== X-Received: by 10.176.90.217 with SMTP id x25mr6708214uae.179.1519344036672; Thu, 22 Feb 2018 16:00:36 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id s124sm550618vke.20.2018.02.22.16.00.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 16:00:36 -0800 (PST) Date: Thu, 22 Feb 2018 21:00:33 -0300 From: Rodrigo Siqueira To: David Airlie , Gerd Hoffmann Subject: [PATCH 4/7] drm/virtio: Remove return from void function Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 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: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch.pl warning: virtgpu_ttm.c:181: WARNING: void function return statements are not generally useful ... Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/virtio/virtgpu_ttm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_ttm.c b/drivers/gpu/drm/virtio/virtgpu_ttm.c index 36655b709eb2..cd4a17a1409a 100644 --- a/drivers/gpu/drm/virtio/virtgpu_ttm.c +++ b/drivers/gpu/drm/virtio/virtgpu_ttm.c @@ -177,7 +177,6 @@ static void ttm_bo_man_put_node(struct ttm_mem_type_manager *man, struct ttm_mem_reg *mem) { mem->mm_node = (void *)NULL; - return; } static int ttm_bo_man_init(struct ttm_mem_type_manager *man, @@ -244,7 +243,6 @@ static void virtio_gpu_evict_flags(struct ttm_buffer_object *bo, placement->busy_placement = &placements; placement->num_placement = 1; placement->num_busy_placement = 1; - return; } static int virtio_gpu_verify_access(struct ttm_buffer_object *bo,