Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2104388pxj; Sat, 19 Jun 2021 03:05:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXaqFrWAivPBDuxknQNb4ZcyKmU+7EOzoK35WzjYpNo6FFuq/oooeCKeln42JuP4ejlDyp X-Received: by 2002:a6b:4419:: with SMTP id r25mr11369252ioa.205.1624097115984; Sat, 19 Jun 2021 03:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624097115; cv=none; d=google.com; s=arc-20160816; b=eIhOmjAw+k7ijDDH4IfTxPxVKXY7asGaXEoQVIGLlCzrnlRvZlU9N5mYjSSeoOizEa WTje+/heaH7XthaqJsuQDjOjbL8XMIt7H1wBrjxOdtFXxyFt2C+BMQANnrW+wJp0EvnL zuEuMQuGUqpyHWqgz007O7/JgZMEHfFVXjaT33S24HNp3JkrNQK+ueXB5i7KRAcQRUo1 ubj6hR2sxk4A3/nIcIpOIjiy0gryt/9aM+0WgUOMX+XkDxs25Xy4z4iTLHVKPJJAITRd tb4BsPsKC4Q5XGJ8xsP/+/GZKp5JOYnx4aGcZu7euziXnAh4EOY+SrP1YP3oiQYBt/jA +UtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ShLRPCtwAP0Grg1LFU1sbKiXFUggDDo30TR+Vzy+Ydw=; b=h9u2ObwOkLnw3csIP56zaGVaYJjC4DipmbH6odJfZcLRbHQagFWMvWQSUfu1anHWAP ulj7UWEyWBNnST2N05wKKwbFkWVXYOOitZ4FCqQxfiSptKjMQgopa9JCF9bDnmkO5N1v 09PKEoYoCvsn+4C+JqhvdZI9ixZnGMzmGpO9XIV8I7375ouOAg3uUiB4pvy2kiQz5KqF sAZGhMnspC8Wg+3XRdFQFJrdVui+ai69xSeIGiihBjlPLP34x7/E+JezITX3cX1qAqCs kxPmUBxFL/kUj/hpCymopSiXmNpTOmBv1F4D6NTE6zuzGk3lpGroZUd9Shd7l5+JMFwX M37A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mess.org header.s=2020 header.b=mY2yXOYB; 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 q10si5558706ilu.60.2021.06.19.03.05.03; Sat, 19 Jun 2021 03:05:15 -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; dkim=fail header.i=@mess.org header.s=2020 header.b=mY2yXOYB; 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 S233873AbhFSISE (ORCPT + 99 others); Sat, 19 Jun 2021 04:18:04 -0400 Received: from gofer.mess.org ([88.97.38.141]:32873 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233586AbhFSISD (ORCPT ); Sat, 19 Jun 2021 04:18:03 -0400 Received: by gofer.mess.org (Postfix, from userid 1000) id 87708C64CE; Sat, 19 Jun 2021 09:15:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mess.org; s=2020; t=1624090551; bh=6uWZ5D/Vfe+loYwha1/nll3IHXXspVs9vHhejVISxO4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mY2yXOYBSAx6pjBRMPVlMQyHzX2DGqmOL/4I0b+xcevpO4FZT73ZmTc6oaOzZ/t2M R+3e5NOD4SwjUduSLcLauUyiNJvfqbFP175kE/qJLj7/WcyfjXgsO5D9Ot1RZpKdPf OUzYvpil7DEsPhZ9Y+7fe7dgJvuOz7cs7THnD/TLB2BefubktvGvpCwOqHQ3Hg5hWd B4aHSThpGi6Wd27fNupk6KHKfC54EMK9LDC7SgjUIKk7XrNueebeWKAo7UFpgu5Nt8 YlN+P1LyUHOxwOyUzmH8VyXLi7KQahiCIDGj85UcoafMXOEqIs+zg4ORTPK6JLFrcW JzUE2ePKV35ug== Date: Sat, 19 Jun 2021 09:15:51 +0100 From: Sean Young To: lijian_8010a29@163.com Cc: gustavoars@kernel.org, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, lijian Subject: Re: [PATCH] media: dvb-frontends: dib0090: Delete 'break' after 'goto' Message-ID: <20210619081551.GA6887@gofer.mess.org> References: <20210618070707.4731-1-lijian_8010a29@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210618070707.4731-1-lijian_8010a29@163.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 18, 2021 at 03:07:07PM +0800, lijian_8010a29@163.com wrote: > From: lijian > > break is not useful after a goto, so delete 'break' after 'goto', > and delete reused 'goto identification_error;'. > > Signed-off-by: lijian > --- > drivers/media/dvb-frontends/dib0090.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/media/dvb-frontends/dib0090.c b/drivers/media/dvb-frontends/dib0090.c > index 903da33642df..9179fe1bd713 100644 > --- a/drivers/media/dvb-frontends/dib0090.c > +++ b/drivers/media/dvb-frontends/dib0090.c > @@ -403,8 +403,6 @@ static int dib0090_identify(struct dvb_frontend *fe) > break; > case P1A_B: > dprintk("P1-A/B detected: driver is deactivated - not available\n"); > - goto identification_error; > - break; Removing both the break and the goto introduces a switch fallthrough; this would need explicit marking with the fallthrough keyword. Having said that, fallthrough isn't needed here. Best to avoid fallthrough with all it pitfalls and just keep the goto. > default: > goto identification_error; > } > @@ -493,8 +491,6 @@ static int dib0090_fw_identify(struct dvb_frontend *fe) > break; > case P1A_B: > dprintk("P1-A/B detected: driver is deactivated - not available\n"); > - goto identification_error; > - break; Same here. > default: > goto identification_error; > } > -- > 2.25.1