Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v1 0/1] iio: Remove assignment to pf->timestamp by using elvis
@ 2024-09-22 16:03 Vasileios Amoiridis
  2024-09-22 16:03 ` [PATCH v1 1/1] iio: acpi-als: Use elvis operator to simplify if statement Vasileios Amoiridis
  0 siblings, 1 reply; 3+ messages in thread
From: Vasileios Amoiridis @ 2024-09-22 16:03 UTC (permalink / raw)
  To: jic23, lars; +Cc: linux-iio, linux-kernel, Vasileios Amoiridis

Instead of checking the value of the pf->timestamp and determining to assign
to it a new one or not, use the elvis operator to save some lines and
to simplify it.

Vasileios Amoiridis (1):
  iio: acpi-als: Use elvis operator to simplify if statement

 drivers/iio/light/acpi-als.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)


base-commit: 8bea3878a1511bceadc2fbf284b00bcc5a2ef28d
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-28 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-22 16:03 [PATCH v1 0/1] iio: Remove assignment to pf->timestamp by using elvis Vasileios Amoiridis
2024-09-22 16:03 ` [PATCH v1 1/1] iio: acpi-als: Use elvis operator to simplify if statement Vasileios Amoiridis
2024-09-28 14:58   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox