From: Slawomir Stepien Date: Thu, 14 Apr 2016 19:36:41 +0000 (+0200) Subject: iio: magnetometer: ak8975: put else and brace at the same line X-Git-Tag: v4.8-rc1~193^2~2^2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26b89d7d2b22e3b7ae78dc8e5e17e0e4e9d448ca;p=platform%2Fkernel%2Flinux-exynos.git iio: magnetometer: ak8975: put else and brace at the same line This fixes the error reported by checkpatch.pl: ERROR: else should follow close brace '}' Signed-off-by: Slawomir Stepien Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c index 1e68981..a2aac50 100644 --- a/drivers/iio/magnetometer/ak8975.c +++ b/drivers/iio/magnetometer/ak8975.c @@ -882,8 +882,7 @@ static int ak8975_probe(struct i2c_client *client, name = ak8975_match_acpi_device(&client->dev, &chipset); if (!name) return -ENODEV; - } - else + } else return -ENOSYS; if (chipset >= AK_MAX_TYPE) {