aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-core.c
diff options
context:
space:
mode:
authorAlexander Vorwerk <alexander.vorwerk@stud.uni-goettingen.de>2022-03-12 19:03:43 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-04-04 09:11:23 +0100
commitf4decb4c6e374a4ded59a6a76b8236695e44d8bc (patch)
tree632d69fe8bb8c43b5f2d9cf89b0304a0d9c7d65a /drivers/iio/industrialio-core.c
parentLinux 5.18-rc1 (diff)
downloadlinux-dev-f4decb4c6e374a4ded59a6a76b8236695e44d8bc.tar.xz
linux-dev-f4decb4c6e374a4ded59a6a76b8236695e44d8bc.zip
iio: core: fix a few code style issues
* Fix indent in else statement * Remove unnecessary 'else' after 'break' * Remove space in '* attr' Signed-off-by: Alexander Vorwerk <alexander.vorwerk@stud.uni-goettingen.de> Link: https://lore.kernel.org/r/20220312180343.8935-1-alexander.vorwerk@stud.uni-goettingen.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/industrialio-core.c')
-rw-r--r--drivers/iio/industrialio-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index e1ed44dec2ab..2f48e9a97274 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -892,8 +892,7 @@ static int __iio_str_to_fixpoint(const char *str, int fract_mult,
} else if (*str == '\n') {
if (*(str + 1) == '\0')
break;
- else
- return -EINVAL;
+ return -EINVAL;
} else if (!strncmp(str, " dB", sizeof(" dB") - 1) && scale_db) {
/* Ignore the dB suffix */
str += sizeof(" dB") - 1;