diff options
author | Slawomir Stepien <sst@poczta.fm> | 2016-04-14 21:36:41 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-04-16 13:39:27 +0100 |
commit | 26b89d7d2b22e3b7ae78dc8e5e17e0e4e9d448ca (patch) | |
tree | 24b9333a738c1c1f19695293053569de3ec599af /drivers/iio/magnetometer | |
parent | d23057e0cadc465911968a4d3f8b0b556f545b6e (diff) |
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/magnetometer')
-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 1e6898141f88..a2aac50a0149 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) { |