From patchwork Mon Oct 19 17:28:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 11844847 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCA2DC43457 for ; Mon, 19 Oct 2020 17:29:55 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 457412224D for ; Mon, 19 Oct 2020 17:29:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="3ftKN2X3"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Vk4zj/RW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 457412224D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=2CkrAgU7IJXFgVpW6PXGGXwOSizSJNEXC5vTNcvwGSQ=; b=3ftKN2X3W8hMECQdUAI1uPuxLo 6AAPrTpbTHPOcxYNFN+8yq0dfA7K60eQIqI7sZx7JvEAlwv3CTYlmts7pLjYggT9mYPY9lcbgPEZy vdsYatbSBJQCBUhe9nnzlM4wYiNJ8BgSZiSEmNuekXWA+iSbiLWBAw5vBzVUB4xkYNYyqAiVk4pQA m0mrQpeQRNjeqmTGGoPMToqN1mNZJZt434uh0auHxNSCZFC6xnYWbihOzXOKJQoARtcGpgceSEZvd rmSFxRKAXxBWgXH7FaZ1A2ZqSwUSapb4LuHabTLvh2KvGI9Gng4OqXxPyqXQOZ1+piKNzOrzsxGkW YviTOXqA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUYxY-0002By-UO; Mon, 19 Oct 2020 17:28:36 +0000 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUYxV-0002AQ-9q for linux-arm-kernel@lists.infradead.org; Mon, 19 Oct 2020 17:28:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603128512; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type; bh=HW3zBaCtD1eYq0aK8PlR42sK9/UGx1+e0AwNTosIs2M=; b=Vk4zj/RW7JQWN/8dglqh6TQITzU7b2oddxHeXgqeXVCLhU50Bpgp6aGALemzAbIb1PjjRF NKYv3Gjw6+5+6P5uXtu3E6knSRG6gGh+btbdnnve1w2NanFd0HQAicOi61im6psPDh/bip pXL4To+xs1ltIPjT2+gy3vUIAQUU0d0= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-12-8UROa0JwPc2sA_KXsCZWiA-1; Mon, 19 Oct 2020 13:28:30 -0400 X-MC-Unique: 8UROa0JwPc2sA_KXsCZWiA-1 Received: by mail-qt1-f198.google.com with SMTP id e19so392723qtq.17 for ; Mon, 19 Oct 2020 10:28:30 -0700 (PDT) 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; bh=HW3zBaCtD1eYq0aK8PlR42sK9/UGx1+e0AwNTosIs2M=; b=gIexZJf/jb4BOg2YLB7Eb8f8TP+YTiP05O35XEUFGbZmEEkqIp6civbLGA+88nEbGW 3ru6LOTxRj0W9yd/mPP+Xfxf8Nche28MLnq98wdrZWjkLvx//wQtntusesM+blNRshQd OZxzdrQbbnvofxKzl5pPVZIyPsenRM3K3Nl4sFqEQ+w6vdOhpe4DPVkG9tntMBeoGhe4 med8lSPPXsdW6bsnhtCld5mmS3lnBWTa7jU7uGeryUSWA/sDrhyhD2gpqAphUQJZ9XNr rB7kDD/LWLP4znVCoCNI9+9fAQYclcZe75KOpj6TqgMkfacK5eCgYT849CYRntnMKXZB f+Iw== X-Gm-Message-State: AOAM530TEx4hwY6lfbZkVn5N4G6bmCX94NiOHAsTE3bKWg+xojmvtzKt yPDbXUjGeQcTfQEVPJ8635dEZfGqZ6qGp2eZ2qVukUSmeyVhXDmXbOhP7y8NQ8S2RRhUtNn61v+ qMxGB/nsTtv6axGs02PFWXWev++zZkBHMDi4= X-Received: by 2002:ac8:5bc5:: with SMTP id b5mr508605qtb.174.1603128510492; Mon, 19 Oct 2020 10:28:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEOFD1teIPDOYCpl3vtGGQdIkQYBiIWt3gTZg1nPEQPWalrkE5Eig1h7A3XXVSaJPOocNZTQ== X-Received: by 2002:ac8:5bc5:: with SMTP id b5mr508593qtb.174.1603128510296; Mon, 19 Oct 2020 10:28:30 -0700 (PDT) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id f189sm275697qkd.20.2020.10.19.10.28.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 10:28:29 -0700 (PDT) From: trix@redhat.com To: jic23@kernel.org, lars@metafoo.de, pmeerw@pmeerw.net, khilman@baylibre.com, narmstrong@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, andy.shevchenko@gmail.com, krzk@kernel.org, alexandru.ardelean@analog.com, jonathan.albrieux@gmail.com Subject: [PATCH] iio: remove unneeded break Date: Mon, 19 Oct 2020 10:28:24 -0700 Message-Id: <20201019172824.32166-1-trix@redhat.com> X-Mailer: git-send-email 2.18.1 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201019_132833_389494_28E83E30 X-CRM114-Status: GOOD ( 11.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-iio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tom Rix MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix Reviewed-by: Martin Blumenstingl --- drivers/iio/adc/meson_saradc.c | 2 -- drivers/iio/imu/bmi160/bmi160_core.c | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index e03988698755..66dc452d643a 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -593,13 +593,11 @@ static int meson_sar_adc_iio_info_read_raw(struct iio_dev *indio_dev, case IIO_CHAN_INFO_RAW: return meson_sar_adc_get_sample(indio_dev, chan, NO_AVERAGING, ONE_SAMPLE, val); - break; case IIO_CHAN_INFO_AVERAGE_RAW: return meson_sar_adc_get_sample(indio_dev, chan, MEAN_AVERAGING, EIGHT_SAMPLES, val); - break; case IIO_CHAN_INFO_SCALE: if (chan->type == IIO_VOLTAGE) { diff --git a/drivers/iio/imu/bmi160/bmi160_core.c b/drivers/iio/imu/bmi160/bmi160_core.c index 222ebb26f013..431076dc0d2c 100644 --- a/drivers/iio/imu/bmi160/bmi160_core.c +++ b/drivers/iio/imu/bmi160/bmi160_core.c @@ -486,7 +486,6 @@ static int bmi160_write_raw(struct iio_dev *indio_dev, case IIO_CHAN_INFO_SCALE: return bmi160_set_scale(data, bmi160_to_sensor(chan->type), val2); - break; case IIO_CHAN_INFO_SAMP_FREQ: return bmi160_set_odr(data, bmi160_to_sensor(chan->type), val, val2);