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>
This commit is contained in:
Slawomir Stepien
2016-04-14 21:36:41 +02:00
committed by Jonathan Cameron
parent d23057e0ca
commit 26b89d7d2b

View File

@@ -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) {