Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10694677rwd; Thu, 22 Jun 2023 03:38:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FeCIk1VASBI52JgqQvHQzvdH6ycBzXtP+GJbGOC9Oowj5gtG2mWASmsiyfZJNhsZQt9Or X-Received: by 2002:a05:620a:903:b0:765:25bc:4977 with SMTP id v3-20020a05620a090300b0076525bc4977mr1833770qkv.69.1687430323537; Thu, 22 Jun 2023 03:38:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687430323; cv=none; d=google.com; s=arc-20160816; b=CRL8aF81ctQgjNTzFl+5pWDInCnfsHXliap47fIhV+vzLKoMsnwXwNfStKsu1Nied0 FFHQFYMlMNM1UE9rMpZYckzXyEtz+MGZ3dNM8zQ2C+i9L004+/una4yrQmX6K1Ub0J7E PUKuMPuu6Wnus7Hc6KhdEfP07KA7WYxtzYGBwpPvrCfd++5U4eEADAIIG2M1e04zo+NV nwYKMyw5/j0nCQeM8Y2ejZsC1GSTX7kcJyyA4iRMRL83UVOZioihmj2NAtIiRcBhU5QR GeNjPErAauZeWMlmDWjdelRmWiUdztf3LOtaJb99uId672hVLp0MjBXq11aT2WWRDVb6 Jinw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=sru4iO65AE/PgJU/pt7SEiDkXhb5MPGX8m3wNySIq6c=; b=ZFo0Efz9DPyRfkKW2rlLKucIeQoOnyHGVPy/EGs+oV0dfrkVjjQOsHl/E8IuCBNv6i GXpcAN+SbI85LZlJGxXbbKE3LQ4egJGRH+GDNgq5gO4efoTfrH+qMbskNwTQTvHlwD0k TFbiHsy9oht6CUC0NgGNKTD6Yg7GRlfYaIxzk63mTtydfNpbPPT0NrUPWCuikPtheEED Q5NkJAdQzsWwZAeTJilGrL2UN200+zDtrD8uou7tYqFPTE+27j0fmxR6xJQbT4f2MUue m8Xfl1kOY8A7JskEgEF2Hg3RA2cpqLxM68WrF7CAHog4+yU0sJBrkmFNq7PeZRDxzY9p DQnA== 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 m24-20020a637d58000000b00553b5116cefsi6531934pgn.16.2023.06.22.03.38.28; Thu, 22 Jun 2023 03:38:43 -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 S231246AbjFVKTI (ORCPT + 99 others); Thu, 22 Jun 2023 06:19:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbjFVKTC (ORCPT ); Thu, 22 Jun 2023 06:19:02 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 22C311A1 for ; Thu, 22 Jun 2023 03:18:59 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8Dx+cUSIJRkkGgAAA--.671S3; Thu, 22 Jun 2023 18:18:58 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx_c4RIJRkwQICAA--.11118S2; Thu, 22 Jun 2023 18:18:58 +0800 (CST) From: Sui Jingfeng To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/drm_gem.c: Remove surplus else after return Date: Thu, 22 Jun 2023 18:18:57 +0800 Message-Id: <20230622101857.2298773-1-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Cx_c4RIJRkwQICAA--.11118S2 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUU9Gb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26c xKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vE j48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxV AFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x02 67AKxVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E 87Iv67AKxVWxJVW8Jr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw2 8IcxkI7VAKI48JMxAqzxv262kKe7AKxVWUXVWUAwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCF I7km07C267AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r 106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AK xVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7 xG6r1j6r1xMIIF0xvEx4A2jsIE14v26F4j6r4UJwCI42IY6I8E87Iv6xkF7I0E14v26r4U JVWxJrUvcSsGvfC2KfnxnUUI43ZEXa7IU1pVbDUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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 else is not generally useful after return Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/drm_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 1a5a2cd0d4ec..c18686f434d4 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -1150,8 +1150,8 @@ int drm_gem_pin(struct drm_gem_object *obj) { if (obj->funcs->pin) return obj->funcs->pin(obj); - else - return 0; + + return 0; } void drm_gem_unpin(struct drm_gem_object *obj) -- 2.25.1