Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp316059pxu; Fri, 23 Oct 2020 01:11:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4d1h2o0TYX7u1pJsjG74OpgRzsnOKj8FXS2Ru2x+1skPJfsclJtQmiMgbSCLBxGT82Sid X-Received: by 2002:a17:906:6004:: with SMTP id o4mr800237ejj.309.1603440687077; Fri, 23 Oct 2020 01:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603440687; cv=none; d=google.com; s=arc-20160816; b=ZL1QA42PncgQrTuJmLO3HkCyD+V3SUc2xMPIBCg8bpm+kQb1J1pUQojhZZIbF3Pe8K s3pTQc8GQ8enJc37hq2ZFIbNM81mXkKqAAw6vzXQfrtpV31JKxiNKTTnXaBYY54IcXjF kuvOqCNJLFp94+dl+zp4bKgV4ZEwj6qyM1LwXoNI1EJ127H6v5ccqbbH5dJ0bHlcZlJ0 k+ge+j80b4RNXVk2bkeRpxibv3fO7qmSSjB00fOxBw6qufyaDXEjNz3GFoBH/kNq6SfM QqfckTibF4RIlXztKWwWujvEWrGIflhlXjuZelZUu5jXdvQaeLjAxRivBOPvYWb9Stn9 rNyA== 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=T5uQ1BJZWT7EebYIqznAHwxXQwFudtdg8peeT1F1hLY=; b=xXevNxYoAloeSJSRILu7sqgYFlw6SkwmUfYbZPXfKKPgmPqhVKb7olQKVc/9RqC/8D oRNy8iEliu6jo7MjUdC/pxdnFW3PEM7L+ZubY09KOxLVHpgq2wNke7d/p6qEtCP3AlZS ML/Cyefegr3tKfWmWqsjToqKXFtjPqoKnX59wVhx5whUEEusV1or29NvHZnkjhf+CdKm AFusLddtxEBAJAqT5U127lxBDAYSzXrw/Z/O/1qNkxLLvTLGoRLddqTCXyxikcMXmFEa XtRiD7EDmeSq2k6tn87/Gqp9NP96j89nNEV90vcGaR69rdOJl+J31yFhAtb5oSKXjIhY uEew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t25si400263ejr.282.2020.10.23.01.11.04; Fri, 23 Oct 2020 01:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S375490AbgJWHAO (ORCPT + 99 others); Fri, 23 Oct 2020 03:00:14 -0400 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:2746 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S373639AbgJWHAO (ORCPT ); Fri, 23 Oct 2020 03:00:14 -0400 Received: from ubuntu.localdomain (unknown [157.0.31.124]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id 64AFD482BB8; Fri, 23 Oct 2020 15:00:10 +0800 (CST) From: Bernard Zhao To: Dave Airlie , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH] gpu/drm/mgag200:remove break after return Date: Fri, 23 Oct 2020 00:00:03 -0700 Message-Id: <20201023070004.55105-1-bernard@vivo.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZHx1NGUsdSR5JGB0eVkpNS0hPSE1PSktNSk5VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS09ISVVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NDo6MDo*ED8fQjRWQ0keIj1P EgNPCwlVSlVKTUtIT0hNT0pKS0hMVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlKTkxV S1VISlVKSU9ZV1kIAVlBSUpLSTcG X-HM-Tid: 0a755441f6d193bakuws64afd482bb8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In function mgag200_set_pci_regs, there are some switch cases returned, then break. These break will never run. This patch is to make the code a bit readable. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/mgag200/mgag200_mode.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index 38672f9e5c4f..de873a5d276e 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c @@ -794,20 +794,17 @@ static int mgag200_crtc_set_plls(struct mga_device *mdev, long clock) case G200_SE_A: case G200_SE_B: return mga_g200se_set_plls(mdev, clock); - break; case G200_WB: case G200_EW3: return mga_g200wb_set_plls(mdev, clock); - break; case G200_EV: return mga_g200ev_set_plls(mdev, clock); - break; case G200_EH: case G200_EH3: return mga_g200eh_set_plls(mdev, clock); - break; case G200_ER: return mga_g200er_set_plls(mdev, clock); + default: break; } -- 2.28.0