diff options
author | Slawomir Stepien <sst@poczta.fm> | 2016-04-14 19:36:41 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-04-16 12:39:27 (GMT) |
commit | 26b89d7d2b22e3b7ae78dc8e5e17e0e4e9d448ca (patch) | |
tree | 24b9333a738c1c1f19695293053569de3ec599af /drivers/iio | |
parent | d23057e0cadc465911968a4d3f8b0b556f545b6e (diff) | |
download | linux-26b89d7d2b22e3b7ae78dc8e5e17e0e4e9d448ca.tar.xz |
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 <sst@poczta.fm>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/magnetometer/ak8975.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |