diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-10-24 07:53:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-10-24 09:47:49 -0400 |
commit | a9b685110036e27ccd9ed0d71e08bb66f3fed6fd (patch) | |
tree | 41814224541ddee43c21c7a5ebc3eaa7d8878e88 /drivers/iio | |
parent | 345d4f92e72964e2d2f482c635bc949b04f861ed (diff) |
iio: dac: mcp4725: Remove redundant code
Remove an inconsequential print message and return directly
thereby cleaning up some code.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/dac/mcp4725.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/iio/dac/mcp4725.c b/drivers/iio/dac/mcp4725.c index d982752dd9c4..9f57ae84ab89 100644 --- a/drivers/iio/dac/mcp4725.c +++ b/drivers/iio/dac/mcp4725.c | |||
@@ -320,13 +320,7 @@ static int mcp4725_probe(struct i2c_client *client, | |||
320 | data->powerdown_mode = pd ? pd-1 : 2; /* 500kohm_to_gnd */ | 320 | data->powerdown_mode = pd ? pd-1 : 2; /* 500kohm_to_gnd */ |
321 | data->dac_value = (inbuf[1] << 4) | (inbuf[2] >> 4); | 321 | data->dac_value = (inbuf[1] << 4) | (inbuf[2] >> 4); |
322 | 322 | ||
323 | err = iio_device_register(indio_dev); | 323 | return iio_device_register(indio_dev); |
324 | if (err) | ||
325 | return err; | ||
326 | |||
327 | dev_info(&client->dev, "MCP4725 DAC registered\n"); | ||
328 | |||
329 | return 0; | ||
330 | } | 324 | } |
331 | 325 | ||
332 | static int mcp4725_remove(struct i2c_client *client) | 326 | static int mcp4725_remove(struct i2c_client *client) |