Commit 26b89d7d authored by Slawomir Stepien's avatar Slawomir Stepien Committed by Jonathan Cameron

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: default avatarSlawomir Stepien <sst@poczta.fm>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent d23057e0
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment