Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp820040pxk; Thu, 17 Sep 2020 17:54:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHpxtINJ9Vs/qk9D+7lwZQR8Uq8c7pJ27zsISgqb84CISqwJPR4UgK1xwg9/SWoSdj35hz X-Received: by 2002:a17:906:3955:: with SMTP id g21mr33796280eje.69.1600390467364; Thu, 17 Sep 2020 17:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600390467; cv=none; d=google.com; s=arc-20160816; b=pJsxbFa2VVc2R0hyiHEBd45A/CMohgG/zhexwDV7XxusWBERN0ApQLofAptVG2xEqd WYhCcUDxAjVbp8/Fm5QIk6G/HBbWahcBS9uC+uChIf6l+zqPfOb3WVo69DHc4adDSAaI lbh7i6gC25ggq+PYru0LYpG47QCOMCafG3S5wBUeGtsoFqNiOV/PjujBkO80wBrc/lZG ABmwHJIxPKVI/K2efB/GMcYOgGDv5gG0SpImzRX5z2MoJwV+gU6gASI77GFDRFMzoIeZ xAth+hDOmMwIEyd79aVQTsKe5dBAnxupNzo8JAq9cWK/4K0Rme/FVAFo9eLTbDuRapea y82g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=8pqlRcGFoNXy/v+gz/JHNwWAHQnqByG+qsHV1UE6yXU=; b=v/rNtwMxxWewbpFSVdxO9tUuRpW+Nm+bh99v4p6RO2tRSuVyrlq30uzjMey3k5rDuD k5SJNLSPIVntYbFSKxY+mywGYz6EreloAZOvyV6Xw9UlaT4el+3OV+hLy/7zs3oAcm8H zIcOs+0DvtTWyFUuH77pUlGPGQR9UbB2NccK9Iqq6Z8Hr4bnsJBmcst314ZGXTSs6+n2 Kc7ujkRag3gOpO/W/czFgSfX1AHCHWehOcFkS7n8oG5K4JPZjs1b/CICn3fe1rsDAN3r xrU/BNlo+20u1Wbjdhjc/uYAdC7XmDR10hNCenN+NbO9Mcu0+R81Q8+81ZKaYNOMlyr4 tZTw== 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 h1si945601edt.106.2020.09.17.17.54.02; Thu, 17 Sep 2020 17:54: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 S1726134AbgIRAuc (ORCPT + 99 others); Thu, 17 Sep 2020 20:50:32 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13274 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726102AbgIRAuc (ORCPT ); Thu, 17 Sep 2020 20:50:32 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A79DC255FB1C7A8DD48E; Fri, 18 Sep 2020 08:50:28 +0800 (CST) Received: from [10.174.178.248] (10.174.178.248) by smtp.huawei.com (10.3.19.203) with Microsoft SMTP Server (TLS) id 14.3.487.0; Fri, 18 Sep 2020 08:50:26 +0800 Subject: Re: [PATCH] fbcon: Remove the superfluous break To: Nick Desaulniers References: <20200917131515.147029-1-jingxiangfeng@huawei.com> CC: Bartlomiej Zolnierkiewicz , Greg KH , , , Nathan Chancellor , , , dri-devel , , LKML , "Gustavo A. R. Silva" , Joe Perches From: Jing Xiangfeng Message-ID: <5F640451.7020704@huawei.com> Date: Fri, 18 Sep 2020 08:50:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.248] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/9/18 1:36, Nick Desaulniers wrote: > On Thu, Sep 17, 2020 at 6:15 AM Jing Xiangfeng wrote: >> >> Remove the superfuous break, as there is a 'return' before it. > > superfluous (missed "l") Thanks for correcting! > >> >> Signed-off-by: Jing Xiangfeng > > Reviewed-by: Nick Desaulniers > > Thanks for the patch; I audited the rest of the switch statements in > this translation unit; LGTM. > >> --- >> drivers/video/fbdev/core/fbcon.c | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c >> index 0b49b0f44edf..623359aadd1e 100644 >> --- a/drivers/video/fbdev/core/fbcon.c >> +++ b/drivers/video/fbdev/core/fbcon.c >> @@ -1727,7 +1727,6 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b, >> vc->vc_video_erase_char, >> vc->vc_size_row * count); >> return true; >> - break; >> >> case SCROLL_WRAP_MOVE: >> if (b - t - count > 3 * vc->vc_rows >> 2) { >> @@ -1818,7 +1817,6 @@ static bool fbcon_scroll(struct vc_data *vc, unsigned int t, unsigned int b, >> vc->vc_video_erase_char, >> vc->vc_size_row * count); >> return true; >> - break; >> >> case SCROLL_WRAP_MOVE: >> if (b - t - count > 3 * vc->vc_rows >> 2) { >> -- >> 2.17.1 >> > >