From: Gyeyoung Baek <gye976@gmail.com>
To: jic23@kernel.org, lars@metafoo.de
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
Gyeyoung Baek <gye976@gmail.com>
Subject: [PATCH] iio: imu: inv_mpu6050: Remove duplicate code between labels
Date: Sun, 1 Sep 2024 18:12:14 +0900 [thread overview]
Message-ID: <20240901091214.15199-1-gye976@gmail.com> (raw)
'flush_fifo' label performs same task as 'endsession' label
immediately after calling 'env_reset_fifo' function.
so i remove that duplication.
Signed-off-by: Gyeyoung Baek <gye976@gmail.com>
---
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c
index 45c37525c2f1..40107b4457d4 100644
--- a/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c
+++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c
@@ -192,15 +192,12 @@ irqreturn_t inv_mpu6050_read_fifo(int irq, void *p)
iio_push_to_buffers_with_timestamp(indio_dev, st->data, timestamp);
}
-end_session:
- mutex_unlock(&st->lock);
- iio_trigger_notify_done(indio_dev->trig);
-
- return IRQ_HANDLED;
flush_fifo:
/* Flush HW and SW FIFOs. */
inv_reset_fifo(indio_dev);
+
+end_session:
mutex_unlock(&st->lock);
iio_trigger_notify_done(indio_dev->trig);
--
2.34.1
next reply other threads:[~2024-09-01 9:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-01 9:12 Gyeyoung Baek [this message]
2024-09-01 12:08 ` [PATCH] iio: imu: inv_mpu6050: Remove duplicate code between labels Markus Elfring
2024-09-01 13:40 ` gyeyoung
2024-09-02 10:04 ` Jean-Baptiste Maneyrol
2024-09-02 11:15 ` gyeyoung
[not found] ` <CAKbEznv-TmCr2FAodrM2SKK5A5pbV9p5-OvXPdmuk_4xXmh=Rw@mail.gmail.com>
2024-09-01 18:16 ` Markus Elfring
2024-09-02 1:59 ` gyeyoung
2024-09-02 6:00 ` Markus Elfring
2024-09-02 1:26 ` gyeyoung
2024-09-02 11:20 ` Markus Elfring
2024-09-02 9:54 ` Jean-Baptiste Maneyrol
2024-09-02 10:36 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240901091214.15199-1-gye976@gmail.com \
--to=gye976@gmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox