From patchwork Wed Oct 28 12:56:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 1389254 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=ESl/IiLm; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CLpW13zh8z9sVN for ; Wed, 28 Oct 2020 23:57:01 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 770F682423; Wed, 28 Oct 2020 13:56:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="ESl/IiLm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B12D682423; Wed, 28 Oct 2020 13:56:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 33FA382423 for ; Wed, 28 Oct 2020 13:56:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=robert.marko@sartura.hr Received: by mail-wr1-x444.google.com with SMTP id a9so1762283wrg.12 for ; Wed, 28 Oct 2020 05:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vqR9w9VrizQoYIzyZjur7E0fto/EUEzyIkKoWfzT/J4=; b=ESl/IiLml+Iq/eaObtx9lRn7ezm18BG2kzTxczBQNcbbiNDj3qMtLu4qCYniEq7Yq5 7qXcAPAmVHYhOAJ2rZ2/Oanq1QHYewwO38/iKyqADBn9sY9I4IwgKCO4054mzdmEmGMO ngtAaDVuWZ4CF8KNFlVvYP91MbJF0MEu/X6WgnurLcIQVkTHyixhCwSMOyiEyejxnylg oD/F/OQ/Q14aVNRQBioU4FuAFxfSnO5Bd4rg2sTpEoJEUe1OImYgLQvn5IquhQKetkgI rONIKtgvGBQI6kkgOXlS+Gy2zKAXy+IkU7WJ5Lq0yiXrKX50zLd6+J6GVSKo7/fWD2Bt nILg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vqR9w9VrizQoYIzyZjur7E0fto/EUEzyIkKoWfzT/J4=; b=NFdH1idbnC+gJg59bcIu3R3M8V7Z4lFNyQG6n03F9uGlQ2lUKvOz10Wq4OyS+QvEbq mUSu/YLJuwVmKXNpepnoCEuxCShLUrSGqdQJ8bJqiiywC/Xc6zss9XrdhmXVgiR7YxW2 7NTPRMIPKko5Oarc1x8EwK+nBU3Fry9hedzmObgBCH6b4AZeoAz+FGfWSGxs6GaJdnZU hJmSuv/GJxdODCWaek3RtZ7zt0nDcgdbN0ZRKWQTxHgHvdRCjdl+GnHuhodbIxAMXV2f 5NqVn3GbxOileIJm285kgfMRLaYmberj5AV0lHPWPBTHWJ6G343oJ3hBsk/i5yVzhrCX +FnA== X-Gm-Message-State: AOAM531xYypHX7hKkO1b0ajbnrUzzHCOdQvtDUGZ2lhfqpA8rCjpVbC8 dOSiJKe+6wHyJSX+pdywhOLNcHp2bThKUhCr6ULM61gVOl0KQPRC3KGoYAeq4HNBSZPoEQJTzDm TFWGy3KiGt9szhy5Bya/EJMg7/WLaZ6O6pxL99gaEKwGt9tFAA3OYXFGTayeUoEv+lVTePoGV X-Google-Smtp-Source: ABdhPJw615yD2oTyJdpg0I0UgVn3uGsE3qoPfKkqCZ+2pEkL8M684EuwR+SGkapurGDhM1BOf3ArHQ== X-Received: by 2002:adf:fd47:: with SMTP id h7mr8778776wrs.245.1603889794300; Wed, 28 Oct 2020 05:56:34 -0700 (PDT) Received: from localhost.localdomain (dh207-98-200.xnet.hr. [88.207.98.200]) by smtp.googlemail.com with ESMTPSA id q10sm6743233wrp.83.2020.10.28.05.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 05:56:33 -0700 (PDT) From: Robert Marko To: u-boot@lists.denx.de Cc: Robert Marko , Luka Perkov Subject: [PATCH 2/4] IPQ40xx: clk: drop breaks in switch case Date: Wed, 28 Oct 2020 13:56:24 +0100 Message-Id: <20201028125626.40067-2-robert.marko@sartura.hr> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201028125626.40067-1-robert.marko@sartura.hr> References: <20201028125626.40067-1-robert.marko@sartura.hr> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean There is no point in having break statements in the switch case as there is already a return before break. So lets drop them from the driver. Signed-off-by: Robert Marko Cc: Luka Perkov --- arch/arm/mach-ipq40xx/clock-ipq4019.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-ipq40xx/clock-ipq4019.c b/arch/arm/mach-ipq40xx/clock-ipq4019.c index 1f385665cc..ac2b830353 100644 --- a/arch/arm/mach-ipq40xx/clock-ipq4019.c +++ b/arch/arm/mach-ipq40xx/clock-ipq4019.c @@ -25,7 +25,6 @@ ulong msm_set_rate(struct clk *clk, ulong rate) case GCC_BLSP1_UART1_APPS_CLK: /*UART1*/ /* This clock is already initialized by SBL1 */ return 0; - break; default: return 0; } @@ -53,11 +52,9 @@ static int msm_enable(struct clk *clk) case GCC_BLSP1_QUP1_SPI_APPS_CLK: /*SPI1*/ /* This clock is already initialized by SBL1 */ return 0; - break; case GCC_PRNG_AHB_CLK: /*PRNG*/ /* This clock is already initialized by SBL1 */ return 0; - break; default: return 0; }