Skip to content

Commit

Permalink
iio: magnetometer: ak8975: put else and brace at the same line
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Slawomir Stepien authored and Jonathan Cameron committed Apr 16, 2016
1 parent d23057e commit 26b89d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/iio/magnetometer/ak8975.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 26b89d7

Please sign in to comment.