Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1547188
| From | Scott Matheina <scott@matheina.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCHv4 4/8] Fix braces not present on all arms of if else statement |
| Date | 2016-12-25 20:50 +0100 |
| Message-ID | <sSmXT-1CZ-5@gated-at.bofh.it> (permalink) |
| References | <sSmXT-1CZ-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Adds braces to second arm of if else statement.
Signed-off-by: Scott Matheina <scott@matheina.com>
---
drivers/staging/iio/addac/adt7316.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c
index 2b584a0..e78d302 100644
--- a/drivers/staging/iio/addac/adt7316.c
+++ b/drivers/staging/iio/addac/adt7316.c
@@ -661,8 +661,9 @@ static ssize_t adt7316_store_da_high_resolution(struct device *dev,
chip->dac_bits = 12;
else if (chip->id == ID_ADT7317 || chip->id == ID_ADT7517)
chip->dac_bits = 10;
- } else
+ } else {
config3 = chip->config3 & (~ADT7316_DA_HIGH_RESOLUTION);
+ }
ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG3, config3);
if (ret)
--
2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCHv4 4/8] Fix braces not present on all arms of if else statement Scott Matheina <scott@matheina.com> - 2016-12-25 20:50 +0100
csiph-web