iio: magnetometer: ak8975: put else and brace at the same line
authorSlawomir Stepien <sst@poczta.fm>
Thu, 14 Apr 2016 19:36:41 +0000 (21:36 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 16 Apr 2016 12:39:27 +0000 (13:39 +0100)
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>
drivers/iio/magnetometer/ak8975.c

index 1e6898141f884bd0e461a33fc4045cbb3fb08dcd..a2aac50a0149dddaf411ea2aad3490cdb5a8fc3d 100644 (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) {
This page took 0.027922 seconds and 5 git commands to generate.