[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210328180124.8762-1-dmugil2000@gmail.com>
Date: Sun, 28 Mar 2021 23:31:23 +0530
From: Mugilraj Dhavachelvan <dmugil2000@...il.com>
To: Jonathan Cameron <jic23@...nel.org>,
Hartmut Knaack <knaack.h@....de>,
Lars-Peter Clausen <lars@...afoo.de>,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
Mugilraj Dhavachelvan <dmugil2000@...il.com>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] iio: accel: da280: Drop unnecessarily used braces
As per linux kernel coding style braces are not needed for single
statement.
Checkpatch
warning: braces {} are not necessary for any arm of this statement
128: FILE: drivers/iio/accel/da280.c:128:
Signed-off-by: Mugilraj Dhavachelvan <dmugil2000@...il.com>
---
drivers/iio/accel/da280.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/iio/accel/da280.c b/drivers/iio/accel/da280.c
index 227bea2d738b..31f290ae4386 100644
--- a/drivers/iio/accel/da280.c
+++ b/drivers/iio/accel/da280.c
@@ -125,11 +125,10 @@ static int da280_probe(struct i2c_client *client,
indio_dev->modes = INDIO_DIRECT_MODE;
indio_dev->channels = da280_channels;
- if (ACPI_HANDLE(&client->dev)) {
+ if (ACPI_HANDLE(&client->dev))
chip = da280_match_acpi_device(&client->dev);
- } else {
+ else
chip = id->driver_data;
- }
if (chip == da226) {
indio_dev->name = "da226";
--
2.25.1
Powered by blists - more mailing lists