From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFI5s-00019z-PU for barebox@lists.infradead.org; Mon, 17 Feb 2014 06:54:21 +0000 Date: Mon, 17 Feb 2014 07:53:59 +0100 From: Sascha Hauer Message-ID: <20140217065359.GH17250@pengutronix.de> References: <1392330771-21671-1-git-send-email-dev@lynxeye.de> <1392330771-21671-3-git-send-email-dev@lynxeye.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1392330771-21671-3-git-send-email-dev@lynxeye.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 2/7] tegra: add break to switch statements To: Lucas Stach Cc: barebox@lists.infradead.org On Thu, Feb 13, 2014 at 11:32:46PM +0100, Lucas Stach wrote: > Avoids a possible miscompilation. > > Signed-off-by: Lucas Stach > --- > arch/arm/mach-tegra/include/mach/lowlevel.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/mach-tegra/include/mach/lowlevel.h b/arch/arm/mach-tegra/include/mach/lowlevel.h > index 472348a..9081b1c 100644 > --- a/arch/arm/mach-tegra/include/mach/lowlevel.h > +++ b/arch/arm/mach-tegra/include/mach/lowlevel.h > @@ -73,8 +73,10 @@ enum tegra_chiptype tegra_get_chiptype(void) > switch ((hidrev & HIDREV_CHIPID_MASK) >> HIDREV_CHIPID_SHIFT) { > case 0x20: > return TEGRA20; > + break; > default: > return TEGRA_UNK_REV; > + break; What kind of miscompilation other than a compiler bug are you thinking of? Have you seen that this patch changes anything? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox