Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932868AbcLYTmn (ORCPT ); Sun, 25 Dec 2016 14:42:43 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:34063 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932704AbcLYTmd (ORCPT ); Sun, 25 Dec 2016 14:42:33 -0500 From: Scott Matheina To: linux-kernel@vger.kernel.org Cc: Scott Matheina , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCHv4 4/8] Fix braces not present on all arms of if else statement Date: Sun, 25 Dec 2016 13:41:08 -0600 Message-Id: <1482694902-7400-5-git-send-email-scott@matheina.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482694902-7400-1-git-send-email-scott@matheina.com> References: <1482694902-7400-1-git-send-email-scott@matheina.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 24 Adds braces to second arm of if else statement. Signed-off-by: Scott Matheina --- 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