Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1468394rdd; Wed, 10 Jan 2024 23:10:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHobFUH6iQ7GfogjMgUFW2QXHPwDd9cVRnqUrzaIfazqmaLzCL7yL1zj5uHUo38TjPD7JKy X-Received: by 2002:a17:906:7c47:b0:a28:d309:549a with SMTP id g7-20020a1709067c4700b00a28d309549amr283992ejp.18.1704957017950; Wed, 10 Jan 2024 23:10:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704957017; cv=none; d=google.com; s=arc-20160816; b=IatEP9gH6/Ej8TJIsxrft1V1Bz6AUek+7+obducYwHd6eiZ8XxAtqpmAgxYPJWnaAm nEOZR21RYTW/8d0sP6Jn0sGxzUbl+cjix9jF7kwX4uI+cpfxBcz0Fn6rsj2foaaXEvur soVZbSN8XiImeBk5A4lu4Z73YBhHLbf6rt0gefSlzFnzAUF9qNL+8AqI9cETcaqiAhiS JpFMCOjcETMW4PBmELOIpePUx2LorlN/b44xjybRq8acz9jY9Ru21MCef27k+Xilx84j +NWHaFuUCSFLlDXaidmij2bxTKwQ2/HcXW+5MHwzHHKWeW5Xmx7WPK6LnJeDBl0m0zy2 gciA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=WlG3u4VI90oQ5dQx7O3zDbT6BFxAUYMaGnbgXPVYfkc=; fh=dOiR+59mheJnwMGToTUoLaCqLdxx8c0b39BPI80oxgE=; b=uDD0ZTvJRLYqqwoswjeFxnLKIV9OkVQuTQqPjW8XU5CrpkTK6h0hwTGNPuYM2mE6n6 LjwOWfp30bvUNzBtiB4b6AUM0uKUZNOAVYwzfKjOdBPPHT1xICJQ8Ax33wzdtMrq4sdS Vi/UnahCa4pWqq18V6evxulUhiXa+qnozI2mVhXgW0XMz2QRVaXBC4ODDZPIYRMZw3m6 oqt+X5pQoTgfYg6BLevjIKKAWepyjHqUtd6SG0jgcUZmiPxvGHIyprdY21pY90pkeei5 dmPw2p3Mo4PdDcyVn3MsGcRqgGpGlmUfID82+o3mgtMHirI7TEJ5u+/zjt+IC+Y2UQEr QVvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=alv8AIjE; spf=pass (google.com: domain of linux-kernel+bounces-23128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f4-20020a1709067f8400b00a2c21c31e0fsi233323ejr.468.2024.01.10.23.10.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 23:10:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=alv8AIjE; spf=pass (google.com: domain of linux-kernel+bounces-23128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B21F01F24220 for ; Thu, 11 Jan 2024 07:10:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3752DD28D; Thu, 11 Jan 2024 07:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="alv8AIjE" Received: from m16.mail.163.com (m15.mail.163.com [45.254.50.220]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EF51D26A for ; Thu, 11 Jan 2024 07:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=WlG3u4VI90oQ5dQx7O 3zDbT6BFxAUYMaGnbgXPVYfkc=; b=alv8AIjEI43QFMds5jF3YyTT8y3DIYGr+S CGXx/to9Lo0plMkEIdflmsBQLtAtmL4rbnQquKrJgVm5YJuZVVzBmCNJ2Zj1iTfh NK4yMvZBR+g8cJoKaa+PjHwyT5OYcGCypkMu3GxRmLppZAA05E25WKHQE/LShN6R KlhNbKgPI= Received: from localhost.localdomain (unknown [182.148.14.173]) by gzga-smtp-mta-g0-3 (Coremail) with SMTP id _____wD3v0cylJ9l+gSRAA--.56957S2; Thu, 11 Jan 2024 15:09:38 +0800 (CST) From: GuoHua Chen To: daniel@ffwll.ch, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, kraxel@redhat.com, maarten.lankhorst@linux.intel.com, airlied@redhat.com Cc: virtualization@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, spice-devel@lists.freedesktop.org, GuoHua Chen Subject: [PATCH] dma-buf: Clean up errors in qxl_release.h Date: Thu, 11 Jan 2024 07:09:36 +0000 Message-Id: <20240111070936.9693-1-chenguohua_716@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:_____wD3v0cylJ9l+gSRAA--.56957S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrur13Ww1fXFyUZr48AF4Utwb_yoW3Gwb_WF 4UXrnrWrsrCF1DC3W7A3y5ZrZIvF98uFWku3Z8tFy3Jry7Ar4UX34qkrZxZ348ZFZrCFsx Aa1kXrsxArn3ujkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjjQ6tUUUUU== X-CM-SenderInfo: xfkh0w5xrk3tbbxrlqqrwthudrp/1tbiqBNi1mVOBk7AagAAsG Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Fix the following errors reported by checkpatch: ERROR: else should follow close brace '}' Signed-off-by: GuoHua Chen --- drivers/gpu/drm/qxl/qxl_release.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_release.c b/drivers/gpu/drm/qxl/qxl_release.c index 368d26da0d6a..7f7aa7a62629 100644 --- a/drivers/gpu/drm/qxl/qxl_release.c +++ b/drivers/gpu/drm/qxl/qxl_release.c @@ -299,8 +299,7 @@ int qxl_alloc_release_reserved(struct qxl_device *qdev, unsigned long size, } else if (type == QXL_RELEASE_CURSOR_CMD) { cur_idx = 2; priority = 1; - } - else { + } else { DRM_ERROR("got illegal type: %d\n", type); return -EINVAL; } -- 2.17.1